Skip to content

Commit

Permalink
feat: Add support for VSIX .NET framework selection
Browse files Browse the repository at this point in the history
  • Loading branch information
jeromelaban committed Sep 28, 2022
1 parent 2b2736d commit f38716d
Show file tree
Hide file tree
Showing 14 changed files with 248 additions and 181 deletions.
Binary file modified doc/articles/Assets/quick-start/vsix-new-project-options.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 4 additions & 1 deletion doc/articles/get-started-dotnet-new.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ If you need to determine the parameters available for a template use `dotnet new
[!include[getting-help](use-uno-check-inline.md)]

## Uno Platform Blank Application for WinAppSDK - WinUI 3 (Preview)
## Uno Platform Blank Application for WinAppSDK - WinUI 3

This template can be used to create a blank multi-platform application for iOS, Android, WebAssembly, macOS, Mac Catalyst, Linux, and Win32 Desktop which uses the new WinUI 3 APIs.

Expand All @@ -29,6 +29,9 @@ A basic example:
dotnet new unoapp -o MyApp
```

> [!NOTE]
> It is possible to create a .NET 7 template by using `-framework net7.0` parameter.
More articles on WinUI 3:

* [WinUI 3, UWP, and Uno Platform.](uwp-vs-winui3.md)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -317,6 +317,7 @@
.Replace("UseIOS", "ios")
.Replace("UseAppKit", "macos")
.Replace("UseCatalyst", "maccatalyst")
.Replace("$basetargetframework$", "net6.0")
;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@
"mobile": {
"longName": "mobile",
"shortName": "mobile"
},
"Framework": {
"longName": "framework"
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -37,151 +37,168 @@
"3EA9E612-E717-4E55-9034-C415CD62AF9A", // UWP
"2B1FDFB6-C93C-4CA1-A6AB-528C4B3654B9" // UWP
],
"symbols": {
"guid1": {
"type": "generated",
"generator": "guid",
"replaces": "$guid1$",
"parameters": {
"format": "N"
}
},
"guid2": {
"type": "generated",
"generator": "guid",
"replaces": "$guid2$",
"parameters": {
"format": "N"
}
},
"guid3": {
"type": "generated",
"generator": "guid",
"replaces": "$guid3$",
"parameters": {
"format": "N"
}
},
"guid4": {
"type": "generated",
"generator": "guid",
"replaces": "$guid4$",
"parameters": {
"format": "N"
}
},
"guid5": {
"type": "generated",
"generator": "guid",
"replaces": "$guid5$",
"parameters": {
"format": "N"
}
},
"guid6": {
"type": "generated",
"generator": "guid",
"replaces": "$guid6$",
"parameters": {
"format": "N"
}
},
"guid7": {
"type": "generated",
"generator": "guid",
"replaces": "$guid7$",
"parameters": {
"format": "N"
}
},
"windowsPublisherName": {
"type": "parameter",
"datatype": "text",
"replaces": "$XmlEscapedPublisherDistinguishedName$",
"description": "Provides the value to use for the Windows head publisher",
"defaultValue": "O=MyCompany"
},
"WebAssembly": {
"type": "parameter",
"dataType": "bool",
"defaultValue": "true",
"description": "Enables the WebAssembly platform support project"
"symbols": {
"guid1": {
"type": "generated",
"generator": "guid",
"replaces": "$guid1$",
"parameters": {
"format": "N"
}
},
"guid2": {
"type": "generated",
"generator": "guid",
"replaces": "$guid2$",
"parameters": {
"format": "N"
}
},
"guid3": {
"type": "generated",
"generator": "guid",
"replaces": "$guid3$",
"parameters": {
"format": "N"
}
},
"guid4": {
"type": "generated",
"generator": "guid",
"replaces": "$guid4$",
"parameters": {
"format": "N"
}
},
"guid5": {
"type": "generated",
"generator": "guid",
"replaces": "$guid5$",
"parameters": {
"format": "N"
}
},
"guid6": {
"type": "generated",
"generator": "guid",
"replaces": "$guid6$",
"parameters": {
"format": "N"
}
},
"guid7": {
"type": "generated",
"generator": "guid",
"replaces": "$guid7$",
"parameters": {
"format": "N"
}
},
"windowsPublisherName": {
"type": "parameter",
"datatype": "text",
"replaces": "$XmlEscapedPublisherDistinguishedName$",
"description": "Provides the value to use for the Windows head publisher",
"defaultValue": "O=MyCompany"
},
"WebAssembly": {
"type": "parameter",
"dataType": "bool",
"defaultValue": "true",
"description": "Enables the WebAssembly platform support project"
},
"mobile": {
"type": "parameter",
"dataType": "bool",
"defaultValue": "true",
"description": "Enables the Mobile platform support project"
},
"skia-wpf": {
"type": "parameter",
"dataType": "bool",
"defaultValue": "true",
"description": "Enables the Skia/WPF platform support project"
},
"skia-gtk": {
"type": "parameter",
"dataType": "bool",
"defaultValue": "true",
"description": "Enables the Skia/GTK platform support project"
},
"skia-linux-fb": {
"type": "parameter",
"dataType": "bool",
"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"
},
"skipRestore": {
"type": "parameter",
"datatype": "bool",
"description": "If specified, skips the automatic restore of the project on create.",
"defaultValue": "false"
},
"android": {
"type": "generated",
"generator": "constant",
"dataType": "bool",
"parameters": {
"value": "True"
}
},
"ios": {
"type": "generated",
"generator": "constant",
"dataType": "bool",
"parameters": {
"value": "True"
}
},
"macos": {
"type": "generated",
"generator": "constant",
"dataType": "bool",
"parameters": {
"value": "True"
}
},
"maccatalyst": {
"type": "generated",
"generator": "constant",
"dataType": "bool",
"parameters": {
"value": "True"
}
},
"Framework": {
"type": "parameter",
"description": "The target framework for the project.",
"datatype": "choice",
"choices": [
{
"choice": "net6.0",
"description": "Target net6.0"
},
{
"choice": "net7.0",
"description": "Target net7.0"
}
],
"replaces": "net6.0",
"defaultValue": "net6.0"
}
},
"mobile": {
"type": "parameter",
"dataType": "bool",
"defaultValue": "true",
"description": "Enables the Mobile platform support project"
},
"skia-wpf": {
"type": "parameter",
"dataType": "bool",
"defaultValue": "true",
"description": "Enables the Skia/WPF platform support project"
},
"skia-gtk": {
"type": "parameter",
"dataType": "bool",
"defaultValue": "true",
"description": "Enables the Skia/GTK platform support project"
},
"skia-linux-fb": {
"type": "parameter",
"dataType": "bool",
"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"
},
"skipRestore": {
"type": "parameter",
"datatype": "bool",
"description": "If specified, skips the automatic restore of the project on create.",
"defaultValue": "false"
},
"android": {
"type": "generated",
"generator": "constant",
"dataType": "bool",
"parameters": {
"value": "True"
}
},
"ios": {
"type": "generated",
"generator": "constant",
"dataType": "bool",
"parameters": {
"value": "True"
}
},
"macos": {
"type": "generated",
"generator": "constant",
"dataType": "bool",
"parameters": {
"value": "True"
}
},
"maccatalyst": {
"type": "generated",
"generator": "constant",
"dataType": "bool",
"parameters": {
"value": "True"
}
}
},
"primaryOutputs": [
{
"path": "UnoWinUIQuickStart.Shared\\UnoWinUIQuickStart.Shared.shproj"
Expand Down
Loading

0 comments on commit f38716d

Please sign in to comment.