Skip to content

Commit

Permalink
fix(reg): Adjust dotnet new unoapp parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
jeromelaban committed Dec 21, 2022
1 parent 72286c3 commit 093f3f5
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 17 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -324,6 +324,7 @@
.Replace("UseAppKit", "macos")
.Replace("UseCatalyst", "maccatalyst")
.Replace("UseServer", "hosted")
.Replace("$UseWinUI$", "$Windows$")
.Replace("$UseWebAssembly$", "$WebAssembly$")
.Replace("$UseWebAssemblyManifestJson$", "$wasm-pwa-manifest$")
.Replace("$basetargetframework$", "net6.0")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,12 @@
"defaultValue": "true",
"description": "Enables the WebAssembly platform support project"
},
"Windows": {
"type": "parameter",
"dataType": "bool",
"defaultValue": "true",
"description": "Enables the Windows platform support project"
},
"mobile": {
"type": "parameter",
"dataType": "bool",
Expand All @@ -131,17 +137,11 @@
"defaultValue": "true",
"description": "Enables the Skia/Linux Framebuffer platform support project"
},
"winui-desktop": {
"type": "parameter",
"dataType": "bool",
"defaultValue": "true",
"description": "Enables the WinUI desktop platform support project"
},
"vscode": {
"type": "parameter",
"dataType": "bool",
"defaultValue": "false",
"description": "Adds the Visual Studio Code Debugging support files for WebAssembly"
"description": "Adds the Visual Studio Code Debugging support files for WebAssembly",
},
"skipRestore": {
"type": "parameter",
Expand All @@ -155,6 +155,12 @@
"description": "Enables the generation of a PWA manifest for WebAssembly",
"defaultValue": "false"
},
"hosted": {
"type": "parameter",
"datatype": "bool",
"description": "Enables the ASP.NET Core hosting project",
"defaultValue": "true"
},
"android": {
"type": "generated",
"generator": "casing",
Expand Down Expand Up @@ -183,14 +189,6 @@
"source": "mobile"
}
},
"hosted": {
"type": "generated",
"generator": "constant",
"dataType": "bool",
"parameters": {
"value": "True"
}
},
"Framework": {
"type": "parameter",
"description": "The target framework for the project.",
Expand Down Expand Up @@ -238,7 +236,7 @@
"path": "UnoWinUIQuickStart.Server\\UnoWinUIQuickStart.Server.csproj"
},
{
"condition": "winui-desktop",
"condition": "Windows",
"path": "UnoWinUIQuickStart.Windows\\UnoWinUIQuickStart.Windows.csproj"
},
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "UnoWinUIQuickStart.Skia.WPF
EndProject
#//#endif

#//#if (winui-desktop)
#//#if (Windows)
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "UnoWinUIQuickStart.Windows", "UnoWinUIQuickStart.Windows\UnoWinUIQuickStart.Windows.csproj", "{1AA13270-F438-4864-9435-54FD806E10EA}"
EndProject
#//#endif
Expand Down

0 comments on commit 093f3f5

Please sign in to comment.