Unable to edit Package.appxmanifest

杨岑 171 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.
Developer technologies | Visual Studio | Setup
Developer technologies | Visual Studio | Other
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Tianyu Sun-MSFT 34,446 Reputation points Microsoft External Staff
    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.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.