2014-09-22 49 views
0

我上传的扩展Visual Studio的在线gallery,但是当我通过Visual Studio安装它,我在安装对象引用错误安装时从Visual Studio库的扩展

enter image description here

年底得到这个例外

这个错误只发生在我从visual studio安装时发生。如果我下载了vsix并双击安装,我没有看到这个错误。

任何指向为什么这可能会发生?现在我没有任何方法来调试或获取日志。

回答

0

这是由于vsixmanifest的“入门指南”字段中存在错误的值。我通过将vs调试器附加到引发错误并观察堆栈跟踪的视觉工作室实例(在调试器中启用break when CLR exceptions thrown之后),发现了这一点。

这是在调试器异常

System.NullReferenceException occurred 
    HResult=-2147467261 
    Message=Object reference not set to an instance of an object. 
    Source=Microsoft.VisualStudio.ExtensionManager.Implementation 
    StackTrace: 
     at Microsoft.VisualStudio.ExtensionManager.UI.ExtensionManagerWindow.NavigateToGettingStartedGuide(Uri gettingStartedGuideUri)