netcoreapp3.1
This commit is contained in:
Родитель
8842f23ceb
Коммит
ca4c0a9892
|
@ -68,7 +68,7 @@ export class Home extends Component {
|
|||
//if (name === "templateType") {
|
||||
// this.setState({ level2SelectorType: selectedValue === ".NET Templates" ? "net" : "steeltoe"})
|
||||
//}
|
||||
if (name == "targetFrameworkVersion" && selectedValue == "netcoreapp3.0" && this.state.steeltoeVersion == "2.3.0") {
|
||||
if (name == "targetFrameworkVersion" && selectedValue == "netcoreapp3.1" && this.state.steeltoeVersion == "2.3.0") {
|
||||
this.setState({
|
||||
"steeltoeVersion": "2.4.0",
|
||||
[name]: selectedValue
|
||||
|
@ -98,7 +98,7 @@ export class Home extends Component {
|
|||
<InputText title="Project Name" name="projectName" defaultValue="MyCompany.SteeltoeExample" tabIndex="1" required pattern="^(?:((?!\d)\w+(?:\.(?!\d)\w+)*)\.)?((?!\d)\w+)$" onInput={(e) => e.target.setCustomValidity("")} onInvalid={(e) => e.target.setCustomValidity("ProjectName must be a valid C# Identifier: ex. MyCompany.MyProject")} />
|
||||
<div id="more-block">
|
||||
<InputText title="Description" name="description" defaultValue="Demo project for Steeltoe" tabIndex="2" />
|
||||
<RightInputSelector title='Target Framework' name="targetFrameworkVersion" values={["netcoreapp2.1", "netcoreapp2.2", "netcoreapp3.0"]} defaultValue="netcoreapp2.2" selectedValue={this.state.targetFrameworkVersion} onChange={this.handleInputChange} />
|
||||
<RightInputSelector title='Target Framework' name="targetFrameworkVersion" values={["netcoreapp2.1", "netcoreapp2.2", "netcoreapp3.1"]} defaultValue="netcoreapp2.2" selectedValue={this.state.targetFrameworkVersion} onChange={this.handleInputChange} />
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
|
|
@ -51,7 +51,7 @@ namespace Steeltoe.Initializr.Models
|
|||
{
|
||||
if (_templateVersion == null)
|
||||
{
|
||||
return TargetFrameworkVersion == "netcoreapp3.0" ? TemplateVersion.V3 : TemplateVersion.V2;
|
||||
return TargetFrameworkVersion == "netcoreapp3.1" ? TemplateVersion.V3 : TemplateVersion.V2;
|
||||
}
|
||||
|
||||
return _templateVersion.Value;
|
||||
|
|
|
@ -124,7 +124,7 @@
|
|||
"description": "Target netcoreapp2.1"
|
||||
}
|
||||
],
|
||||
"replaces": "netcoreapp2.2",
|
||||
"replaces": "targetframeworkversion",
|
||||
"defaultValue": "netcoreapp2.2"
|
||||
},
|
||||
"AspNetCoreVersion": {
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
<Project Sdk="Microsoft.NET.Sdk.Web">
|
||||
|
||||
<PropertyGroup>
|
||||
<TargetFramework Condition="'$(TargetFrameworkOverride)' == ''">netcoreapp2.2</TargetFramework>
|
||||
<TargetFramework Condition="'$(TargetFrameworkOverride)' == ''">targetframeworkversion</TargetFramework>
|
||||
<TargetFramework Condition="'$(TargetFrameworkOverride)' != ''">TargetFrameworkOverride</TargetFramework>
|
||||
<TypeScriptCompileBlocked>true</TypeScriptCompileBlocked>
|
||||
<TypeScriptToolsVersion>Latest</TypeScriptToolsVersion>
|
||||
|
|
|
@ -248,7 +248,7 @@
|
|||
"description": "Target netcoreapp2.1"
|
||||
}
|
||||
],
|
||||
"replaces": "netcoreapp2.2",
|
||||
"replaces": "targetframeworkversion",
|
||||
"defaultValue": "netcoreapp2.2"
|
||||
},
|
||||
"AspNetCoreVersion": {
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
<Project Sdk="Microsoft.NET.Sdk.Web">
|
||||
|
||||
<PropertyGroup>
|
||||
<TargetFramework Condition="'$(TargetFrameworkOverride)' == ''">netcoreapp2.2</TargetFramework>
|
||||
<TargetFramework Condition="'$(TargetFrameworkOverride)' == ''">targetframeworkversion</TargetFramework>
|
||||
<UserSecretsId Condition="'$(IndividualAuth)' == 'True' OR '$(OrganizationalAuth)' == 'True'">aspnet-Company.WebApplication1-53bc9b9d-9d6a-45d4-8429-2a2761773502</UserSecretsId>
|
||||
<WebProject_DirectoryAccessLevelKey Condition="'$(OrganizationalAuth)' == 'True' AND '$(OrgReadAccess)' != 'True'">0</WebProject_DirectoryAccessLevelKey>
|
||||
<WebProject_DirectoryAccessLevelKey Condition="'$(OrganizationalAuth)' == 'True' AND '$(OrgReadAccess)' == 'True'">1</WebProject_DirectoryAccessLevelKey>
|
||||
|
|
|
@ -115,13 +115,17 @@
|
|||
"description": "The target framework for the project.",
|
||||
"datatype": "choice",
|
||||
"choices": [
|
||||
{
|
||||
"choice": "netcoreapp3.1",
|
||||
"description": "Target netcoreapp3.1"
|
||||
},
|
||||
{
|
||||
"choice": "netcoreapp3.0",
|
||||
"description": "Target netcoreapp3.0"
|
||||
}
|
||||
],
|
||||
"replaces": "netcoreapp3.0",
|
||||
"defaultValue": "netcoreapp3.0"
|
||||
"replaces": "targetframeworkversion",
|
||||
"defaultValue": "netcoreapp3.1"
|
||||
},
|
||||
"AspNetCoreVersion": {
|
||||
"type": "generated",
|
||||
|
@ -131,9 +135,13 @@
|
|||
"evaluator": "C++",
|
||||
"datatype": "string",
|
||||
"cases": [
|
||||
{
|
||||
"condition": "(Framework == 'netcoreapp3.1')",
|
||||
"value": "3.1.0"
|
||||
},
|
||||
{
|
||||
"condition": "(Framework == 'netcoreapp3.0')",
|
||||
"value": "3.0.0-preview8.19405.11"
|
||||
"value": "3.1.0"
|
||||
}
|
||||
]
|
||||
}
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
<Project Sdk="Microsoft.NET.Sdk.Web">
|
||||
|
||||
<PropertyGroup>
|
||||
<TargetFramework Condition="'$(TargetFrameworkOverride)' == ''">netcoreapp3.0</TargetFramework>
|
||||
<TargetFramework Condition="'$(TargetFrameworkOverride)' == ''">targetframeworkversion</TargetFramework>
|
||||
<TargetFramework Condition="'$(TargetFrameworkOverride)' != ''">TargetFrameworkOverride</TargetFramework>
|
||||
<TypeScriptCompileBlocked>true</TypeScriptCompileBlocked>
|
||||
<TypeScriptToolsVersion>Latest</TypeScriptToolsVersion>
|
||||
|
|
|
@ -233,13 +233,17 @@
|
|||
"description": "The target framework for the project.",
|
||||
"datatype": "choice",
|
||||
"choices": [
|
||||
{
|
||||
"choice": "netcoreapp3.1",
|
||||
"description": "Target netcoreapp3.1"
|
||||
},
|
||||
{
|
||||
"choice": "netcoreapp3.0",
|
||||
"description": "Target netcoreapp3.0"
|
||||
}
|
||||
],
|
||||
"replaces": "netcoreapp3.0",
|
||||
"defaultValue": "netcoreapp3.0"
|
||||
"replaces": "targetframeworkversion",
|
||||
"defaultValue": "netcoreapp3.1"
|
||||
},
|
||||
"AspNetCoreVersion": {
|
||||
"type": "generated",
|
||||
|
@ -249,9 +253,13 @@
|
|||
"evaluator": "C++",
|
||||
"datatype": "string",
|
||||
"cases": [
|
||||
{
|
||||
"condition": "(Framework == 'netcoreapp3.1')",
|
||||
"value": "3.1.0"
|
||||
},
|
||||
{
|
||||
"condition": "(Framework == 'netcoreapp3.0')",
|
||||
"value": "3.0.0-preview8.19405.11"
|
||||
"value": "3.1.0"
|
||||
}
|
||||
]
|
||||
}
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
<Project Sdk="Microsoft.NET.Sdk.Web">
|
||||
|
||||
<PropertyGroup>
|
||||
<TargetFramework Condition="'$(TargetFrameworkOverride)' == ''">netcoreapp3.0</TargetFramework>
|
||||
<TargetFramework Condition="'$(TargetFrameworkOverride)' == ''">targetframeworkversion</TargetFramework>
|
||||
<TargetFramework Condition="'$(TargetFrameworkOverride)' != ''">TargetFrameworkOverride</TargetFramework>
|
||||
<UserSecretsId Condition="'$(IndividualAuth)' == 'True' OR '$(OrganizationalAuth)' == 'True'">aspnet-Company.WebApplication1-53bc9b9d-9d6a-45d4-8429-2a2761773502</UserSecretsId>
|
||||
<WebProject_DirectoryAccessLevelKey Condition="'$(OrganizationalAuth)' == 'True' AND '$(OrgReadAccess)' != 'True'">0</WebProject_DirectoryAccessLevelKey>
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
{
|
||||
"sdk": {
|
||||
"version": "3.0.100-preview7-012821"
|
||||
"version": "3.1.100"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -146,7 +146,7 @@
|
|||
},
|
||||
{
|
||||
"Name": "AspNetCoreVersion",
|
||||
"Expression": "TargetFrameworkVersion,netcoreapp3.0=3.1.0,default=False",
|
||||
"Expression": "TargetFrameworkVersion,netcoreapp3.1=3.1.0,default=3.1.0",
|
||||
"ExpressionType": "Case"
|
||||
},
|
||||
{
|
||||
|
@ -188,12 +188,16 @@
|
|||
},
|
||||
{
|
||||
"Name": "TargetFrameworkVersion",
|
||||
"DefaultValue": "netcoreapp3.0",
|
||||
"DefaultValue": "netcoreapp3.1",
|
||||
"Description": "Target the appropriate Dotnet framework version",
|
||||
"choices": [
|
||||
{
|
||||
"Choice": "netcoreapp2.2",
|
||||
"Description": "Target SDotnet framework version 2.2"
|
||||
"Choice": "netcoreapp3.0",
|
||||
"Description": "Target SDotnet framework version 3.0"
|
||||
},
|
||||
{
|
||||
"Choice": "netcoreapp3.1",
|
||||
"Description": "Target SDotnet framework version 3.1"
|
||||
}
|
||||
]
|
||||
},
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
{
|
||||
"sdk": {
|
||||
"version": "3.0.100-preview7-012821"
|
||||
"version": "3.1.100"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -151,7 +151,7 @@
|
|||
},
|
||||
{
|
||||
"Name": "AspNetCoreVersion",
|
||||
"Expression": "TargetFrameworkVersion,netcoreapp3.0=3.1.0,default=False",
|
||||
"Expression": "TargetFrameworkVersion,netcoreapp3.1=3.1.0,default=3.1.0",
|
||||
"ExpressionType": "Case"
|
||||
}
|
||||
],
|
||||
|
@ -187,12 +187,16 @@
|
|||
},
|
||||
{
|
||||
"Name": "TargetFrameworkVersion",
|
||||
"DefaultValue": "netcoreapp3.0",
|
||||
"DefaultValue": "netcoreapp3.1",
|
||||
"Description": "Target the appropriate Dotnet framework version",
|
||||
"choices": [
|
||||
{
|
||||
"Choice": "netcoreapp3.0",
|
||||
"Description": "Target Dotnet framework version 3.0"
|
||||
},
|
||||
{
|
||||
"Choice": "netcoreapp3.1",
|
||||
"Description": "Target Dotnet framework version 3.1"
|
||||
}
|
||||
]
|
||||
},
|
||||
|
|
|
@ -452,7 +452,7 @@ using System.Threading;", valuesController);
|
|||
});
|
||||
|
||||
var fileContents = files.Find(x => x.Key == "testProject.csproj").Value;
|
||||
var aspnetCoreVersion = version == TemplateVersion.V3 ? "3.0.0-preview8.19405.11" : "2.2.0";
|
||||
var aspnetCoreVersion = version == TemplateVersion.V3 ? "3.1.0" : "2.2.0";
|
||||
|
||||
Assert.Contains($@"<PackageReference Include=""Microsoft.EntityFrameworkCore.SqlServer"" Version=""{aspnetCoreVersion}"" />", fileContents);
|
||||
|
||||
|
@ -594,7 +594,7 @@ using System.Threading;", valuesController);
|
|||
Assert.DoesNotContain("AddCloudFoundryActuators", startUpContents);
|
||||
|
||||
var projectFile = files.Find(x => x.Key == "Foo.Bar.csproj").Value;
|
||||
var targetFramework = version == TemplateVersion.V3 ? "netcoreapp3.0" : "netcoreapp2.2";
|
||||
var targetFramework = version == TemplateVersion.V3 ? "netcoreapp3.1" : "netcoreapp2.2";
|
||||
Assert.Contains($"<TargetFramework>{targetFramework}</TargetFramework>", projectFile);
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче