Update templates to support NET8
This commit is contained in:
Родитель
66f3823726
Коммит
a5216256c1
|
@ -5,7 +5,7 @@ steps:
|
|||
displayName: 'Use .NET SDK'
|
||||
inputs:
|
||||
packageType: 'sdk'
|
||||
version: 7.0.302
|
||||
version: 8.0.100
|
||||
- task: DotNetCoreCLI@2
|
||||
displayName: 'Pack Templates'
|
||||
inputs:
|
||||
|
|
|
@ -20,17 +20,17 @@
|
|||
"description": "The target framework for the project.",
|
||||
"datatype": "choice",
|
||||
"choices": [
|
||||
{
|
||||
"choice": "net6.0",
|
||||
"description": "Target net6.0"
|
||||
},
|
||||
{
|
||||
"choice": "net7.0",
|
||||
"description": "Target net7.0"
|
||||
},
|
||||
{
|
||||
"choice": "net8.0",
|
||||
"description": "Target net8.0"
|
||||
}
|
||||
],
|
||||
"replaces": "FrameworkParameter",
|
||||
"defaultValue": "net6.0"
|
||||
"defaultValue": "net8.0"
|
||||
},
|
||||
"skipRestore": {
|
||||
"type": "parameter",
|
||||
|
|
|
@ -20,17 +20,17 @@
|
|||
"description": "The target framework for the project.",
|
||||
"datatype": "choice",
|
||||
"choices": [
|
||||
{
|
||||
"choice": "net6.0",
|
||||
"description": "Target net6.0"
|
||||
},
|
||||
{
|
||||
"choice": "net7.0",
|
||||
"description": "Target net7.0"
|
||||
},
|
||||
{
|
||||
"choice": "net8.0",
|
||||
"description": "Target net8.0"
|
||||
}
|
||||
],
|
||||
"replaces": "FrameworkParameter",
|
||||
"defaultValue": "net6.0"
|
||||
"defaultValue": "net8.0"
|
||||
},
|
||||
"skipRestore": {
|
||||
"type": "parameter",
|
||||
|
|
|
@ -21,12 +21,12 @@
|
|||
"datatype": "choice",
|
||||
"choices": [
|
||||
{
|
||||
"choice": "net7.0",
|
||||
"description": "Target net7.0"
|
||||
"choice": "net8.0",
|
||||
"description": "Target net8.0"
|
||||
}
|
||||
],
|
||||
"replaces": "FrameworkParameter",
|
||||
"defaultValue": "net7.0"
|
||||
"defaultValue": "net8.0"
|
||||
},
|
||||
"UseCompiledBindings": {
|
||||
"type": "parameter",
|
||||
|
|
|
@ -20,17 +20,17 @@
|
|||
"description": "The target framework for the project.",
|
||||
"datatype": "choice",
|
||||
"choices": [
|
||||
{
|
||||
"choice": "net6.0",
|
||||
"description": "Target net6.0"
|
||||
},
|
||||
{
|
||||
"choice": "net7.0",
|
||||
"description": "Target net7.0"
|
||||
},
|
||||
{
|
||||
"choice": "net8.0",
|
||||
"description": "Target net8.0"
|
||||
}
|
||||
],
|
||||
"replaces": "FrameworkParameter",
|
||||
"defaultValue": "net6.0"
|
||||
"defaultValue": "net8.0"
|
||||
},
|
||||
"skipRestore": {
|
||||
"type": "parameter",
|
||||
|
|
|
@ -20,17 +20,17 @@
|
|||
"description": "The target framework for the project.",
|
||||
"datatype": "choice",
|
||||
"choices": [
|
||||
{
|
||||
"choice": "net6.0",
|
||||
"description": "Target net6.0"
|
||||
},
|
||||
{
|
||||
"choice": "net7.0",
|
||||
"description": "Target net7.0"
|
||||
},
|
||||
{
|
||||
"choice": "net8.0",
|
||||
"description": "Target net8.0"
|
||||
}
|
||||
],
|
||||
"replaces": "FrameworkParameter",
|
||||
"defaultValue": "net6.0"
|
||||
"defaultValue": "net8.0"
|
||||
},
|
||||
"skipRestore": {
|
||||
"type": "parameter",
|
||||
|
|
|
@ -21,12 +21,12 @@
|
|||
"datatype": "choice",
|
||||
"choices": [
|
||||
{
|
||||
"choice": "net7.0",
|
||||
"description": "Target net7.0"
|
||||
"choice": "net8.0",
|
||||
"description": "Target net8.0"
|
||||
}
|
||||
],
|
||||
"replaces": "FrameworkParameter",
|
||||
"defaultValue": "net7.0"
|
||||
"defaultValue": "net8.0"
|
||||
},
|
||||
"UseCompiledBindings": {
|
||||
"type": "parameter",
|
||||
|
|
|
@ -94,16 +94,16 @@ if (Test-Path "output") {
|
|||
|
||||
$binlog = [IO.Path]::GetFullPath([IO.Path]::Combine($pwd, "..", "binlog", "test.binlog"))
|
||||
|
||||
Create-And-Build "avalonia.app" "AvaloniaApp" "C#" "f" "net6.0" $binlog
|
||||
Create-And-Build "avalonia.app" "AvaloniaApp" "C#" "f" "net7.0" $binlog
|
||||
Create-And-Build "avalonia.app" "AvaloniaApp" "C#" "f" "net8.0" $binlog
|
||||
Create-And-Build "avalonia.app" "AvaloniaApp" "C#" "av" "0.10.21" $binlog
|
||||
Create-And-Build "avalonia.app" "AvaloniaApp" "C#" "av" "11.0.5" $binlog
|
||||
Create-And-Build "avalonia.app" "AvaloniaApp" "C#" "cb" "true" $binlog
|
||||
Create-And-Build "avalonia.app" "AvaloniaApp" "C#" "cb" "false" $binlog
|
||||
|
||||
# Build the project only twice with all item templates,once with .net6.0 tfm and once with .net7.0 tfm for C# and F#
|
||||
Test-Template "avalonia.mvvm" "AvaloniaMvvm" "C#" "f" "net6.0" $binlog
|
||||
Test-Template "avalonia.mvvm" "AvaloniaMvvm" "C#" "f" "net7.0" $binlog
|
||||
Test-Template "avalonia.mvvm" "AvaloniaMvvm" "C#" "f" "net8.0" $binlog
|
||||
Create-And-Build "avalonia.mvvm" "AvaloniaMvvm" "C#" "av" "0.10.21" $binlog
|
||||
Create-And-Build "avalonia.mvvm" "AvaloniaMvvm" "C#" "av" "11.0.5" $binlog
|
||||
Create-And-Build "avalonia.mvvm" "AvaloniaMvvm" "C#" "m" "ReactiveUI" $binlog
|
||||
|
@ -113,21 +113,21 @@ Create-And-Build "avalonia.mvvm" "AvaloniaMvvm" "C#" "cb" "false" $binlog
|
|||
Create-And-Build "avalonia.mvvm" "AvaloniaMvvm" "C#" "rvl" "true" $binlog
|
||||
Create-And-Build "avalonia.mvvm" "AvaloniaMvvm" "C#" "rvl" "false" $binlog
|
||||
|
||||
Create-And-Build "avalonia.xplat" "AvaloniaXplat" "C#" "f" "net7.0" $binlog
|
||||
Create-And-Build "avalonia.xplat" "AvaloniaXplat" "C#" "f" "net8.0" $binlog
|
||||
Create-And-Build "avalonia.xplat" "AvaloniaXplat" "C#" "cb" "true" $binlog
|
||||
Create-And-Build "avalonia.xplat" "AvaloniaXplat" "C#" "cb" "false" $binlog
|
||||
Create-And-Build "avalonia.xplat" "AvaloniaXplat" "C#" "rvl" "true" $binlog
|
||||
Create-And-Build "avalonia.xplat" "AvaloniaXplat" "C#" "rvl" "false" $binlog
|
||||
|
||||
Create-And-Build "avalonia.app" "AvaloniaApp" "F#" "f" "net6.0" $binlog
|
||||
Create-And-Build "avalonia.app" "AvaloniaApp" "F#" "f" "net7.0" $binlog
|
||||
Create-And-Build "avalonia.app" "AvaloniaApp" "F#" "f" "net8.0" $binlog
|
||||
Create-And-Build "avalonia.app" "AvaloniaApp" "F#" "av" "0.10.21" $binlog
|
||||
Create-And-Build "avalonia.app" "AvaloniaApp" "F#" "av" "11.0.5" $binlog
|
||||
Create-And-Build "avalonia.app" "AvaloniaApp" "F#" "cb" "true" $binlog
|
||||
Create-And-Build "avalonia.app" "AvaloniaApp" "F#" "cb" "false" $binlog
|
||||
|
||||
Test-Template "avalonia.mvvm" "AvaloniaMvvm" "F#" "f" "net6.0" $binlog
|
||||
Test-Template "avalonia.mvvm" "AvaloniaMvvm" "F#" "f" "net7.0" $binlog
|
||||
Test-Template "avalonia.mvvm" "AvaloniaMvvm" "F#" "f" "net8.0" $binlog
|
||||
Create-And-Build "avalonia.mvvm" "AvaloniaMvvm" "F#" "av" "0.10.21" $binlog
|
||||
Create-And-Build "avalonia.mvvm" "AvaloniaMvvm" "F#" "av" "11.0.5" $binlog
|
||||
Create-And-Build "avalonia.mvvm" "AvaloniaMvvm" "F#" "m" "ReactiveUI" $binlog
|
||||
|
@ -137,7 +137,7 @@ Create-And-Build "avalonia.mvvm" "AvaloniaMvvm" "F#" "cb" "false" $binlog
|
|||
Create-And-Build "avalonia.mvvm" "AvaloniaMvvm" "F#" "rvl" "true" $binlog
|
||||
Create-And-Build "avalonia.mvvm" "AvaloniaMvvm" "F#" "rvl" "false" $binlog
|
||||
|
||||
Create-And-Build "avalonia.xplat" "AvaloniaXplat" "F#" "f" "net7.0" $binlog
|
||||
Create-And-Build "avalonia.xplat" "AvaloniaXplat" "F#" "f" "net8.0" $binlog
|
||||
Create-And-Build "avalonia.xplat" "AvaloniaXplat" "F#" "cb" "true" $binlog
|
||||
Create-And-Build "avalonia.xplat" "AvaloniaXplat" "F#" "cb" "false" $binlog
|
||||
Create-And-Build "avalonia.xplat" "AvaloniaXplat" "F#" "rvl" "true" $binlog
|
||||
|
|
Загрузка…
Ссылка в новой задаче