diff --git a/templates/csharp/app-mvvm/.template.config/ide.host.json b/templates/csharp/app-mvvm/.template.config/ide.host.json new file mode 100644 index 00000000..01f1de90 --- /dev/null +++ b/templates/csharp/app-mvvm/.template.config/ide.host.json @@ -0,0 +1,20 @@ +{ + "$schema": "http://json.schemastore.org/ide.host", + "icon": "icon.png", + "symbolInfo": [ + { + "id": "AvaloniaVersion", + "name": { + "text": "Avalonia Version" + }, + "isVisible": true + }, + { + "id": "MVVMToolkit", + "name": { + "text": "MVVM Toolkit" + }, + "isVisible": true + } + ] +} \ No newline at end of file diff --git a/templates/csharp/app-mvvm/.template.config/template.json b/templates/csharp/app-mvvm/.template.config/template.json index 1d6483f0..c237b1c0 100644 --- a/templates/csharp/app-mvvm/.template.config/template.json +++ b/templates/csharp/app-mvvm/.template.config/template.json @@ -47,6 +47,27 @@ "ReactiveUIToolkitChosen": { "type": "computed", "value": "(MVVMToolkit == \"ReactiveUI\")" + }, + "AvaloniaVersion": { + "type": "parameter", + "description": "The target version of Avalonia NuGet packages.", + "datatype": "choice", + "choices": [ + { + "choice": "0.10.18", + "description": "Target 0.10.18 (Latest stable)." + }, + { + "choice": "11.0.0-preview4", + "description": "Target 11.0.0-preview4" + } + ], + "replaces": "AvaloniaVersionTemplateParameter", + "defaultValue": "0.10.18" + }, + "AvaloniaStableChosen": { + "type": "computed", + "value": "(AvaloniaVersion == \"0.10.18\")" } }, "sources": [ diff --git a/templates/csharp/app-mvvm/AvaloniaAppTemplate.csproj b/templates/csharp/app-mvvm/AvaloniaAppTemplate.csproj index ca678408..0dd83c36 100644 --- a/templates/csharp/app-mvvm/AvaloniaAppTemplate.csproj +++ b/templates/csharp/app-mvvm/AvaloniaAppTemplate.csproj @@ -18,12 +18,15 @@ - - + + + + + - + - + diff --git a/templates/csharp/app/.template.config/template.json b/templates/csharp/app/.template.config/template.json index 18126f40..5787f266 100644 --- a/templates/csharp/app/.template.config/template.json +++ b/templates/csharp/app/.template.config/template.json @@ -42,6 +42,7 @@ "description": "Target 11.0.0-preview4" } ], + "replaces": "AvaloniaVersionTemplateParameter", "defaultValue": "0.10.18" }, "AvaloniaStableChosen": { diff --git a/templates/csharp/app/AvaloniaAppTemplate.csproj b/templates/csharp/app/AvaloniaAppTemplate.csproj index 8f6fc21c..eec594db 100644 --- a/templates/csharp/app/AvaloniaAppTemplate.csproj +++ b/templates/csharp/app/AvaloniaAppTemplate.csproj @@ -15,18 +15,13 @@ - - - + + + + + - - - - - - - - + diff --git a/templates/fsharp/app-mvvm/.template.config/ide.host.json b/templates/fsharp/app-mvvm/.template.config/ide.host.json new file mode 100644 index 00000000..937f4730 --- /dev/null +++ b/templates/fsharp/app-mvvm/.template.config/ide.host.json @@ -0,0 +1,13 @@ +{ + "$schema": "http://json.schemastore.org/ide.host", + "icon": "icon.png", + "symbolInfo": [ + { + "id": "AvaloniaVersion", + "name": { + "text": "Avalonia Version" + }, + "isVisible": true + } + ] +} \ No newline at end of file diff --git a/templates/fsharp/app-mvvm/.template.config/template.json b/templates/fsharp/app-mvvm/.template.config/template.json index 567595fe..35732fce 100644 --- a/templates/fsharp/app-mvvm/.template.config/template.json +++ b/templates/fsharp/app-mvvm/.template.config/template.json @@ -13,5 +13,41 @@ "tags": { "language": "F#", "type": "project" + }, + "symbols": { + "Framework": { + "type": "parameter", + "description": "The target framework for the project.", + "datatype": "choice", + "choices": [ + { + "choice": "net6.0", + "description": "Target net6.0" + } + ], + "replaces": "net6.0", + "defaultValue": "net6.0" + }, + "AvaloniaVersion": { + "type": "parameter", + "description": "The target version of Avalonia NuGet packages.", + "datatype": "choice", + "choices": [ + { + "choice": "0.10.18", + "description": "Target 0.10.18 (Latest stable)." + }, + { + "choice": "11.0.0-preview4", + "description": "Target 11.0.0-preview4" + } + ], + "replaces": "AvaloniaVersionTemplateParameter", + "defaultValue": "0.10.18" + }, + "AvaloniaStableChosen": { + "type": "computed", + "value": "(AvaloniaVersion == \"0.10.18\")" + } } } \ No newline at end of file diff --git a/templates/fsharp/app-mvvm/AvaloniaAppTemplate.fsproj b/templates/fsharp/app-mvvm/AvaloniaAppTemplate.fsproj index befc547e..a6e3aef9 100644 --- a/templates/fsharp/app-mvvm/AvaloniaAppTemplate.fsproj +++ b/templates/fsharp/app-mvvm/AvaloniaAppTemplate.fsproj @@ -26,10 +26,14 @@ - - + + + + + - - + + + diff --git a/templates/fsharp/app/.template.config/template.json b/templates/fsharp/app/.template.config/template.json index b795be6c..df8cacfe 100644 --- a/templates/fsharp/app/.template.config/template.json +++ b/templates/fsharp/app/.template.config/template.json @@ -42,6 +42,7 @@ "description": "Target 11.0.0-preview4" } ], + "replaces": "AvaloniaVersionTemplateParameter", "defaultValue": "0.10.18" }, "AvaloniaStableChosen": { diff --git a/templates/fsharp/app/AvaloniaAppTemplate.fsproj b/templates/fsharp/app/AvaloniaAppTemplate.fsproj index c0791d0e..02508a99 100644 --- a/templates/fsharp/app/AvaloniaAppTemplate.fsproj +++ b/templates/fsharp/app/AvaloniaAppTemplate.fsproj @@ -21,17 +21,13 @@ - - - + + + + + - - - - - - - - + +