问题
I started porting my app to Windows 10 Universal App today, started as a blank project. However I can't open the Package.appxmanifest file in Visual Studio, even when I right-click and select View Code (F7). It says "Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information." Any solution for this?
回答1:
I fixed it by removing the Apache Cordova Tools Package.
回答2:
You are hitting by a known bug that we have fixed it for new installs. However, you could hit it if you installed the tools for universal apps within a specific period of time.
The steps outlined here will work for you: Visual Studio 2015 RTM - Lost JavaScript support after update TypeSript Tools
If the “Universal Windows App Development Tools” are still installed:
1.Go to Programs and Features, select Visual Studio 2105, click Change. 2.In Visual Studio setup, click Modify. 3.Deselect the feature “Universal Windows App Development Tools” 4.Select “Universal Windows App Development Tools” again, and click Update.
If you have already uninstalled the “Universal Windows App Development Tools”:
- Reinstall “Universal Windows App Development Tools”
Or, take the following steps to reinstall the JavaScript project system and language service:
1.Download the installer for your edition of Visual Studio, e.g., vs_community.exe.
2.Open a CMD window, and run the following command: vs_community.exe /modify /installselectableitems JavaScript_Hidden /passive
3.Change directories to C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE
4.Run the following commands
- devenv /updateconfiguration
- devenv /clearcache
回答3:
Tools > Extension and Updates > Update Windows Desktop Extensions for the UWP. This works for me.
来源:https://stackoverflow.com/questions/31729255/cant-open-package-appxmanifest-in-visual-studio-2015