Unable to edit Package.appxmanifest

杨岑 166 Reputation points
2024-04-18T15:29:40.4566667+00:00

All of a sudden, I am not able to open Package.appxmanifest.

There is no editor available for 'D:\Build\vs\UwpTest\UwpTest\Package.appxmanifest'.
Make sure the application for the file type (.appxmanifest) is installed.
Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
4,698 questions
Visual Studio Setup
Visual Studio Setup
Visual Studio: A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.Setup: The procedures involved in preparing a software program or application to operate within a computer or mobile device.
977 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Tianyu Sun-MSFT 27,811 Reputation points Microsoft Vendor
    2024-04-19T06:21:51.8466667+00:00

    Hello @杨岑,

    I think something’s wrong with this specific file(.appxmanifest) or with VS.

    A temporarily quick workaround is to create a new UWP project, edit its .appxmanifest file to match your project’s .appxmanifest file and replace your .appxmanifest file. Don’t just copy and paste the xml code. It’s possible that there are some bad characters in the .appxmanifest file, if you just copy and paste the xml code, this issue may persist.

    If this doesn’t work, please try to repair VS from VS Installer => More => Repair.

    Best Regards,

    Tianyu


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.