Type of issue
Code doesn't work
Description
In .NET MAUI 10 Publish Packaged App with the .NET CLI under Configure the project build settings the CSPROJ XML fenced code example contains this line: <WindowsPackageType>Package</WindowsPackageType> which causes an error from dotnet publish command.
Error: 'Package' is not valid for the 'WindowsPackageType' property. The possible valid values are 'None', 'MSIX', or 'Sparse'
The text that follows the fenced code states "The property specifies that the app should be published as a packaged MSIX app...", but this is misleading give the value is not set to 'MSIX' in the example code.
Changing the value from 'Package' to 'MSIX' resolved the problem. If using 'Package' is valid somehow, the documentation needs to either A) address that case more clearly in the text, or B) link to documentation/article that details how the value can be used.
Page URL
https://learn.microsoft.com/en-us/dotnet/maui/windows/deployment/publish-cli?view=net-maui-10.0
Content source URL
https://github.com/dotnet/docs-maui/blob/main/docs/windows/deployment/publish-cli.md
Document Version Independent Id
d0d904f8-2ff9-df92-6399-dc2ac35310b7
Platform Id
41489e13-7b7f-563d-b444-793b41a9748a
Article author
@davidortinau
Metadata
- ID: d0d904f8-2ff9-df92-6399-dc2ac35310b7
- PlatformId: 41489e13-7b7f-563d-b444-793b41a9748a
- Service: dotnet-mobile
- Sub-service: dotnet-maui
Related Issues
Type of issue
Code doesn't work
Description
In .NET MAUI 10 Publish Packaged App with the .NET CLI under Configure the project build settings the CSPROJ XML fenced code example contains this line:
<WindowsPackageType>Package</WindowsPackageType>which causes an error fromdotnet publishcommand.Error: 'Package' is not valid for the 'WindowsPackageType' property. The possible valid values are 'None', 'MSIX', or 'Sparse'
The text that follows the fenced code states "The property specifies that the app should be published as a packaged MSIX app...", but this is misleading give the value is not set to 'MSIX' in the example code.
Changing the value from 'Package' to 'MSIX' resolved the problem. If using 'Package' is valid somehow, the documentation needs to either A) address that case more clearly in the text, or B) link to documentation/article that details how the value can be used.
Page URL
https://learn.microsoft.com/en-us/dotnet/maui/windows/deployment/publish-cli?view=net-maui-10.0
Content source URL
https://github.com/dotnet/docs-maui/blob/main/docs/windows/deployment/publish-cli.md
Document Version Independent Id
d0d904f8-2ff9-df92-6399-dc2ac35310b7
Platform Id
41489e13-7b7f-563d-b444-793b41a9748a
Article author
@davidortinau
Metadata
Related Issues