dotnet / dotnet/docs-maui

Package is not a valid WindowsPackageType

Open
#3,343 0 comments 0 reactions 0 assignees View on GitHub
:watch: Not Triaged dotnet-maui/subsvc dotnet-mobile/svc Pri2
Dominant language
No language data
Stars
282
Forks
265
Avg merge
2d 2h
Merged PRs (30d)
19

Description

### 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](https://learn.microsoft.com/en-us/dotnet/maui/windows/deployment/publish-cli?view=net-maui-10.0#configure-the-project-build-settings) the CSPROJ XML fenced code example contains this line: `Package` 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](https://github.com/dotnet/docs-maui/issues?q=is%3Aissue+is%3Aopen+d0d904f8-2ff9-df92-6399-dc2ac35310b7)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.