VSIX package build failed without showing the reason (Visual Studio bug)

谁说我不能喝 提交于 2019-12-03 07:19:42

My current workaround I've come up with after some time is to change the display name of the extension package in the source.extension.vsixmanifest file:

  <Metadata>
    ...
    <DisplayName>Change this name to sth else and press F5</DisplayName>
    ...
  </Metadata>

Nothing else needs to be changed (unfortunately reversion to old name still fires this error, but at least developing and debugging can be continued).

UPDATE:

I've checked the windows registry for such problematic name, and found following PendingDeletions key:

HKEY_USERS\S-1-5-21-1832937852-2116575123-337272265-599953\Software\Microsoft\VisualStudio\11.0Exp\ExtensionManager\PendingDeletions

Under this key there is value pointing at my extension I've previously uninstalled (while being in the debug mode):

C:\USERS\G_159\APPDATA\LOCAL\MICROSOFT\VISUALSTUDIO\11.0EXP\EXTENSIONS\JAROSLAW WALISZKO\MYEXTENSION\1.0\

Removal of this entry fixes that case.

Davide Icardi commented:

Another solution is to manually open the Visual Studio experimental instance. Starting it caused all the pending extensions to be deleted automatically.

To start the experimental instance, run this command in a developer command prompt:

devenv.exe /RootSuffix Exp

Update: I'm dumb - after installing the VS 2013 SDK, there's a shortcut to start the experimental instance in the Visual Studio 2013 folder of the Start menu.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!