I have noticed the following behavior of Visual Studio 2012: I create VS2012 Package Project (from SDK). When I compile and run it, an experimental VS instance is launched, so I can test implemented package. But If I uninstall package from experimental VS instance (using Tools -> Extensions and Updates -> Uninstall), then I try recompile and rerun package, I get compilation error without any errors shown in Output and Error List. Thus, it is impossible to launch my package under development again. This issue can be reproduce with every newly created VS2012 Package Projects.

In summary, I am not able to run my Package in experimental VS Instance, because I previously uninstalled it. It appears to be a packages metadata caching problem. How can I solve this issue?

Edit:

Steps to reproduce this problem:

  1. Create new Visual Studio 2012 Package Project (VS2012 SDK have to be installed).
  2. Compile and run project. VS Experimental instance should be launched.
  3. In VS Experimental instance, go to Tools -> Extensions and Updates, and uninstall just created extension.
  4. Close VS Experimental instance.
  5. Try to compile and run Package project again. There should be compilation or launch errors, but no information in Output neither Error List.

At this moment it is impossible to run VS Experimental instance with this Package Project again.

有帮助吗?

解决方案

The "nuke from orbit" option is always to completely delete the folders:

C:\Users\[username]\AppData\Local\Microsoft\VisualStudio\11.0Exp
C:\Users\[username]\AppData\Roaming\Microsoft\VisualStudio\11.0Exp

其他提示

Do these steps:

1 - Close Visual Studio

2 - Reset the Visual Studio SDK experimental instance: find the Microsoft Visual Studio 2012/Microsoft Visual Studio SDK/Tools folder, and then select Reset the Microsoft Visual Studio 2012 Experimental instance.

3 - Open your project in Visual Studio.

4 - Increase the version in your .vsixmanifest file.

5 - Clean and Rebuild the solution.

Note usually only Step 4 could solve the problem.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top