maui: New Visual Studio 2022 Install - Cannot publish any .NET 7 MAUI Blazor app for Windows _GenerateAppxPackage

Description

It’s impossible to publish any .NET MAUI Blazor app including one straight from the project template. It simply does not work with the latest version of everything installed.

Severity Code Description Project File Line Suppression State Error MSB4057 The target “_GenerateAppxPackage” does not exist in the project.

It seems completely broken. It has been reported but no response has been received yet after several days. Any patches or things to look at in the local environment would be great. The machine is a windows computer with the latest version of Windows 11 installed. It literally could not be more current.

Steps to Reproduce

  1. Create a new .NET MAUI BLAZOR project
  2. Build a release version
  3. Try to publish the app (sideload)

Link to public reproduction project repository

https://github.com/dotnet/maui

Version with bug

7.0 (current)

Last version that worked well

Unknown/Other

Affected platforms

Windows

Affected platform versions

Windows 11

Did you find any workaround?

The only way to publish right now is to use the CLI

Relevant log output

Severity	Code	Description	Project	File	Line	Suppression State
Error	MSB4057	The target "_GenerateAppxPackage" does not exist in the project.

About this issue

  • Original URL
  • State: closed
  • Created a year ago
  • Reactions: 1
  • Comments: 28 (4 by maintainers)

Most upvoted comments

This issue has been automatically marked as stale because it has been marked as requiring author feedback but has not had any activity for 4 days. It will be closed if no further activity occurs within 3 days of this comment. If it is closed, feel free to comment when you are able to provide the additional information and we will re-investigate.