vs2017 下的 vsix codesnippets 扩展 - PkgdefMgmt.dll 问题

vsix codesnippets extensions under vs2017 - PkgdefMgmt.dll issue

我已经完成了以下两个指南:

msdn

codeproject

即使我下载、构建和安装 Codeproject 文章作者提供的解决方案,我也会遇到同样的问题。

问题是我可以在 vs2017 的实验实例中以调试模式启动并且一切正常,但是一旦我以发布模式构建并关闭 VS2017 并安装 vsix 扩展,它就会成功安装,但是日志表明出了点问题。 (顺便说一句,这很烦人,因为它现在已经安装了,我不得不再次卸载它,因为它有缺陷)

这是日志:

20/07/2017 13:10:55 - Microsoft VSIX Installer 20/07/2017 13:10:55 - ------------------------------------------- 20/07/2017 13:10:55 - vsixinstaller.exe version: 20/07/2017 13:10:55 - 15.0.26430.16 built by: D15SVC 20/07/2017 13:10:55 - ------------------------------------------- 20/07/2017 13:10:55 - Command line parameters: 20/07/2017 13:10:55 - E:\Program Files (x86)\Microsoft Visual Studio17\Community\Common7\IDE\VSIXInstaller.exe,F:\data-cloud\programming\visualstudio\samples not working\TestSnippet\TestSnippet\bin\Release\TestSnippet.vsix 20/07/2017 13:10:55 - ------------------------------------------- 20/07/2017 13:10:55 - Microsoft VSIX Installer 20/07/2017 13:10:55 - > ------------------------------------------- 20/07/2017 13:10:55 - Failed to initialize settings for Isolated Shell C:\Program Files (x86)\Microsoft SQL Server0\Tools\Binn\ManagementStudio\ssms.exe: Unable to find an entry point named '?' in DLL 'PkgdefMgmt.dll'. 20/07/2017 13:10:56 - Initializing Install... 20/07/2017 13:10:56 - Extension Details... 20/07/2017 13:10:56 - Identifier : TestSnippet.Gernot Pokorny.32bf7e3b-9c59-457b-bf7d-bce58268a165 20/07/2017 13:10:56 - Name : TestSnippet 20/07/2017 13:10:56 - Author : Gernot Pokorny 20/07/2017 13:10:56 - Version : 3.0 20/07/2017 13:10:56 - Description : Empty VSIX Project. 20/07/2017 13:10:56 - Locale : en-US 20/07/2017 13:10:56 - MoreInfoURL : 20/07/2017 13:10:56 - InstalledByMSI : False 20/07/2017 13:10:56 - SupportedFrameworkVersionRange : [4.5,) 20/07/2017 13:10:56 - 20/07/2017 13:10:56 - SignatureState : Unsigned 20/07/2017 13:10:56 - Supported Products : 20/07/2017 13:10:56 - Microsoft.VisualStudio.Community 20/07/2017 13:10:56 - Version : [15.0,16.0) 20/07/2017 13:10:56 - 20/07/2017 13:10:56 - References
: 20/07/2017 13:10:56 - Prerequisites : 20/07/2017 13:10:56 - ------------------------------------------------------- 20/07/2017 13:10:56 - Identifier : Microsoft.VisualStudio.Component.CoreEditor 20/07/2017 13:10:56 - Name : Visual Studio core editor 20/07/2017 13:10:56 - Version : [15.0,16.0) 20/07/2017 13:10:56 - 20/07/2017 13:10:56 - ------------------------------------------------------- 20/07/2017 13:10:56 - Identifier : Microsoft.Net.Component.4.7.SDK 20/07/2017 13:10:56 - Name : .NET Framework 4.7 SDK 20/07/2017 13:10:56 - Version : [15.0.26208.0,16.0) 20/07/2017 13:10:56 - 20/07/2017 13:10:56 - ------------------------------------------------------- 20/07/2017 13:10:56 - Identifier : Microsoft.Net.Component.4.7.TargetingPack 20/07/2017 13:10:56 - Name : .NET Framework 4.7 targeting pack 20/07/2017 13:10:56 - Version : [15.0.26419.1,16.0) 20/07/2017 13:10:56 - 20/07/2017 13:10:56 - Signature Details... 20/07/2017 13:10:56 - Extension is not signed. 20/07/2017 13:10:56 - 20/07/2017 13:10:56 - Searching for applicable products... 20/07/2017 13:10:56 - Found installed product - Global Location 20/07/2017 13:10:56 - Found installed product - Visual Studio Community 2017 20/07/2017 13:10:56 - PKGDEF Information: Looking for master PkgDef file, Path: E:\Program Files (x86)\Microsoft Visual Studio17\Community\Common7\IDE\master.pkgdef

20/07/2017 13:10:56 - PKGDEF Information: Creating PkgDefCacheNonVolatile 20/07/2017 13:10:56 - PKGDEF Information: Double-checking master pkgdef file 20/07/2017 13:10:56 - PKGDEF Information: PkgDefManagement initialized 20/07/2017 13:10:56 - PKGDEF Information: RootFolder, Path: E:\Program Files (x86)\Microsoft Visual Studio17\Community\

20/07/2017 13:10:56 - PKGDEF Information: ShellFolder, Path: E:\Program Files (x86)\Microsoft Visual Studio17\Community\

20/07/2017 13:10:56 - PKGDEF Information: PkgDefSearchPath, Path: E:\Program Files (x86)\Microsoft Visual Studio17\Community\Common7\IDE\Extensions;E:\Program Files (x86)\Microsoft Visual Studio17\Community\Common7\IDE\CommonExtensions;E:\Program Files (x86)\Microsoft Visual Studio17\Community\Common7\IDE\devenv.admin.pkgdef

20/07/2017 13:10:56 - PKGDEF Information: ImageManifestSearchPath, Path: E:\Program Files (x86)\Microsoft Visual Studio17\Community\Common7\IDE\Extensions;E:\Program Files (x86)\Microsoft Visual Studio17\Community\Common7\IDE\CommonExtensions;C:\Users\pokor\AppData\Local\Microsoft\VisualStudio.0_7e57f2b8\Extensions

20/07/2017 13:10:56 - PKGDEF Information: ApplicationExtensionsFolder, Path: E:\Program Files (x86)\Microsoft Visual Studio17\Community\Common7\IDE\Extensions

20/07/2017 13:10:56 - PKGDEF Information: "ZeroImpact" = dword:0, "MergeRegistry" = dword:3 20/07/2017 13:10:56 - PKGDEF Information: Could not find ConfigurationChanged timestamp., PKGDEF: 80070002 20/07/2017 13:10:56 - PKGDEF Information: PkgDefCache flags, PKGDEF: 7001 20/07/2017 13:10:56 - PKGDEF Information: Could not find ConfigurationChanged timestamp., PKGDEF: 80070002 20/07/2017 13:10:56 - PKGDEF Information: PkgDef cache is current. 20/07/2017 13:10:56 - PKGDEF Information: PkgDefManagement startup complete 20/07/2017 13:10:57 - The extension with ID 'TestSnippet.Gernot Pokorny.32bf7e3b-9c59-457b-bf7d-bce58268a165' is not installed to Visual Studio Community 2017. 20/07/2017 13:11:22 - The following target products have been selected... 20/07/2017 13:11:22 - Visual Studio Community 2017 20/07/2017 13:11:22 - 20/07/2017 13:11:23 - Beginning to install extension to Visual Studio Community 2017... 20/07/2017 13:11:30 - Install to Visual Studio Community 2017 completed successfully. The extension has been installed to C:\USERS\POKOR\APPDATA\LOCAL\MICROSOFT\VISUALSTUDIO.0_7E57F2B8\EXTENSIONS\GBDXUG45.OK4\

当我现在启动 VS2017 实例并转到 "Tools->Extensions and Updates..." 时,它已安装。即使我转到 "Tools->Code Snippets Manager..." 我也看到了片段,但我无法通过右键单击 "Snippet->Insert Snippet..." 或关联的片段快捷方式插入它们。 (片段代码本身非常好并且可以工作)

这篇来自 msdn 的文章对我一点帮助都没有。本文中未定义的主题太多,因此没有帮助。

需要说明的是,这不是 Whosebug entry 的重复项,因为我的问题与代码片段扩展有关。

编辑:当我按照 vsix-extension-under-vs2017-topic 的 official video tutorial of microsoft 时,我什至会收到相同的日志错误。但是这里的警报与 "Insert Snippet..."

相反

这似乎是一个已知错误。查看确实解决此主题的 Microsoft Visual Studio Developer Community thrad