Update to .NET 6 (#315)

* Update to .NET 6

I update not only samples, but also codegen tools, because .NET 5 is not LTS and in 4 month would be out

Closes #306

* Add .NET 6.0 support to actual templates

* Dont forget about FSharp and VB.NET

* Revert choice option in parameters
This commit is contained in:
Andrii Kurdiumov 2022-01-26 00:24:27 +06:00 committed by GitHub
parent ff3c53f6c5
commit 84f337b046
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
10 changed files with 21 additions and 12 deletions

View file

@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>WinExe</OutputType>
<TargetFramework>net5.0</TargetFramework>
<TargetFramework>net6.0</TargetFramework>
<AppendTargetFrameworkToOutputPath>false</AppendTargetFrameworkToOutputPath>
<OutputPath>..\..\BuildOutput\Samples</OutputPath>
</PropertyGroup>

View file

@ -18,8 +18,9 @@
"symbols": {
"targetframework": {
"type": "parameter",
"defaultValue": "net5.0",
"replaces": "net5.0"
"description": "The target framework for the project.",
"defaultValue": "net6.0",
"replaces": "$(FrameworkParameter)"
}
},
"primaryOutputs": [

View file

@ -2,7 +2,7 @@
<PropertyGroup>
<OutputType>WinExe</OutputType>
<TargetFramework>net5.0</TargetFramework>
<TargetFramework>$(FrameworkParameter)</TargetFramework>
</PropertyGroup>
<ItemGroup>

View file

@ -18,8 +18,9 @@
"symbols": {
"targetframework": {
"type": "parameter",
"defaultValue": "net5.0",
"replaces": "net5.0"
"description": "The target framework for the project.",
"defaultValue": "net6.0",
"replaces": "$(FrameworkParameter)"
}
},
"primaryOutputs": [

View file

@ -2,7 +2,7 @@
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net5.0</TargetFramework>
<TargetFramework>$(FrameworkParameter)</TargetFramework>
</PropertyGroup>
<ItemGroup>

View file

@ -18,8 +18,9 @@
"symbols": {
"targetframework": {
"type": "parameter",
"defaultValue": "net5.0",
"replaces": "net5.0"
"description": "The target framework for the project.",
"defaultValue": "net6.0",
"replaces": "$(FrameworkParameter)"
}
},
"primaryOutputs": [

View file

@ -2,7 +2,7 @@
<PropertyGroup>
<OutputType>WinExe</OutputType>
<TargetFramework>net5.0</TargetFramework>
<TargetFramework>$(FrameworkParameter)</TargetFramework>
</PropertyGroup>
<ItemGroup>

View file

@ -2,7 +2,7 @@
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net5.0</TargetFramework>
<TargetFramework>net6.0</TargetFramework>
<OutputPath>..\..\..\BuildOutput\Tools</OutputPath>
<AppendTargetFrameworkToOutputPath>false</AppendTargetFrameworkToOutputPath>
</PropertyGroup>

View file

@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net5.0</TargetFramework>
<TargetFramework>net6.0</TargetFramework>
<OutputPath>..\..\..\BuildOutput\Tools</OutputPath>
<AppendTargetFrameworkToOutputPath>false</AppendTargetFrameworkToOutputPath>
</PropertyGroup>

View file

@ -13,6 +13,12 @@ pool:
vmImage: 'ubuntu-latest'
steps:
- task: UseDotNet@2
displayName: 'Use .NET Core SDK'
inputs:
version: 6.0.101
includePreviewVersions: false
- script: echo "##vso[build.updatebuildnumber]$(version)"
displayName: 'Set Build Number'