gpt4 book ai didi

visual-studio-2015 - 我的 vs 包没有正确加载

转载 作者:行者123 更新时间:2023-12-03 13:42:12 24 4
gpt4 key购买 nike

我有一个插件,我开发并与早期版本的 Visual Studio 一起使用,
我已经设法在它和 VS 2015 的 VS 包之间开发了一个接口(interface)。
在我的“命令”类中,我有一个回调函数,它包含对
插件库 (.dll) 中的相应函数。还有另一种
插件的便利库 (.dll)。

在实验实例中,一切似乎都运行良好,
现在我正在尝试创建一个用于安装和分发的包。

这适用于在 Windows 10 上运行的 Visual Studio 2015 社区版。

当我双击 .vsix 文件时,我收到以下警告:

This extension does not contain a digital signature.


This extension did not specify license terms in its manifest that are readable by VSIX Installer.




我还是加载了它。

当我调用我的一个函数时,我收到以下错误消息:

The 'Commands_01Package' package did not load correctly.

The problem may have been caused by a configuration change or by the installation of another extension. You can get more information by examining the file "C:\Users\ ... \14.0\ActivityLog.xml".

Restarting Visual Studio could help resolve this issue.



这些是底部的条目
“C:\Users\...\14.0\ActivityLog.xml”:
  <entry>
<record>437</record>
<time>2016/04/20 04:38:41.710</time>
<type>Information</type>
<source>VisualStudio</source>
<description>Entering function CVsPackageInfo::HrInstantiatePackage</description>
<guid>{A683C1FD-D1DC-4790-9A79-EF3A06CA0FEB}</guid>
</entry>
<entry>
<record>438</record>
<time>2016/04/20 04:38:41.711</time>
<type>Information</type>
<source>VisualStudio</source>
<description>Begin package load [Command_01Package]</description>
<guid>{A683C1FD-D1DC-4790-9A79-EF3A06CA0FEB}</guid>
</entry>
<entry>
<record>439</record>
<time>2016/04/20 04:38:44.626</time>
<type>Information</type>
<source>VisualStudio</source>
<description>Entering function CVsPackageInfo::HrInstantiatePackage</description>
<guid>{30D5B2E6-64BF-422F-A2BF-5D5B4D66548F}</guid>
</entry>
<entry>
<record>440</record>
<time>2016/04/20 04:38:44.626</time>
<type>Information</type>
<source>VisualStudio</source>
<description>Begin package load [Settings Store Synchronization Delayed Init Package]</description>
<guid>{30D5B2E6-64BF-422F-A2BF-5D5B4D66548F}</guid>
</entry>
<entry>
<record>441</record>
<time>2016/04/20 04:38:44.626</time>
<type>Information</type>
<source>VisualStudio</source>
<description>End package load [Settings Store Synchronization Delayed Init Package]</description>
<guid>{30D5B2E6-64BF-422F-A2BF-5D5B4D66548F}</guid>
</entry>
<entry>
<record>442</record>
<time>2016/04/20 04:38:45.926</time>
<type>Error</type>
<source>VisualStudio</source>
<description>SetSite failed for package [Command_01Package][The type initializer for
&apos;Wilson_Addin_01.Main_Module&apos; threw an exception.]:
{ at Wilson_VSIX_01.Command_01.Initialize(Package package)
in I:\Visual Studio\VS_Packages\Wilson_VS_Pkg_01\Wilson_VSIX_01\Wilson_VSIX_01\Command_01.cs:line 116&#x000D;&#x000A;
at Wilson_VSIX_01.Command_01Package.Initialize()
in I:\Visual Studio\VS_Packages\Wilson_VS_Pkg_01\Wilson_VSIX_01\Wilson_VSIX_01\Command_01Package.cs:line
69&#x000D;&#x000A;
at Microsoft.VisualStudio.Shell.Package.Microsoft.VisualStudio.Shell.Interop.IVsPackage.SetSite
(IServiceProvider sp)}[Could not load type &apos;MacroXMLLib01.VS_XML_Lib_01_NS.cls_path_verification&apos;
from assembly &apos;MacroXMLLib01, Version=1.0.0.0, Culture=neutral, PublicKeyToken=21ecbe15a2364220&apos;.]:
{ at Wilson_Addin_01.XML_ctrl_module.VS_Link_XML_class..ctor(String&amp; p_XML_path, String&amp;
p_XML_file)&#x000D;&#x000A;
at Wilson_Addin_01.Main_Module..cctor()}</description>
<guid>{A683C1FD-D1DC-4790-9A79-EF3A06CA0FEB}</guid>
<hr>80131534</hr>
<errorinfo></errorinfo>
</entry>
<entry>
<record>443</record>
<time>2016/04/20 04:38:47.141</time>
<type>Error</type>
<source>VisualStudio</source>
<description>End package load [Command_01Package]</description>
<guid>{A683C1FD-D1DC-4790-9A79-EF3A06CA0FEB}</guid>
<hr>80131534</hr>
<errorinfo></errorinfo>
</entry>
</activity>

我对 VS Packages 几乎一无所知。我不会打扰
如果微软没有放弃对插件的支持的话,
我必须投入时间和精力似乎很荒谬
让它工作以保留我拥有的功能
与旧版本的 VS。

如果这似乎是一个愚蠢的问题,请原谅,但缺乏
数字签名与“SetSite failed for package”有什么关系?

如果是这样,那么我需要做什么才能获得数字签名?

对此的任何帮助将不胜感激。

最佳答案

我对第三方软件包有类似的问题。

按照他们关于从 '\Common7\IDE\Extensions' 删除的在线步骤后,我仍然收到错误消息。

他们告诉我作为打开 vs 命令提示符并运行的最后一步:

devenv /UpdateConfiguration

并且错误消失了。

关于visual-studio-2015 - 我的 vs 包没有正确加载,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/36734419/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com