gpt4 book ai didi

c# - 该文件不是有效的 VSIX 包

转载 作者:行者123 更新时间:2023-11-30 14:47:57 27 4
gpt4 key购买 nike

安装 Visual Studio 2017 后,我可以在这个 Vs 包上工作一个月左右,直到第一次更新。现在,在我重建此 Visual Studio 包并尝试安装 VSIX 后,我收到一条消息,指出它是“无效的 VSIX 包”。

任何帮助或指点将不胜感激...

enter image description here

编辑:

日志显示:

找不到名为“?”的入口点在 DLL“PkgdefMgmt.dll”中

19/03/2017 10:16:02 PM - Microsoft VSIX Installer 19/03/2017 10:16:02 PM - ------------------------------------------- 19/03/2017 10:16:02 PM - vsixinstaller.exe version: 19/03/2017 10:16:02 PM - 15.0.26228.9 built by: D15RTWSVC 19/03/2017 10:16:02 PM - ------------------------------------------- 19/03/2017 10:16:02 PM - Command line parameters: 19/03/2017 10:16:02 PM - C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\Common7\IDE\VSIXInstaller.exe,C:\Service\BSToolsProject_3\Tools\ProductivityTools\Bin (Scenario Engine)\Capitec.ScenarioEngineExtension.vsix 19/03/2017 10:16:02 PM - ------------------------------------------- 19/03/2017 10:16:02 PM - Microsoft VSIX Installer 19/03/2017 10:16:02 PM - ------------------------------------------- 19/03/2017 10:16:02 PM - Failed to initialize settings for Isolated Shell C:\Program Files (x86)\Microsoft SQL Server\110\Tools\Binn\ManagementStudio\ssms.exe: Unable to find an entry point named '?' in DLL 'PkgdefMgmt.dll'. 19/03/2017 10:16:02 PM - Failed to initialize settings for Isolated Shell C:\Program Files (x86)\Microsoft SQL Server\120\Tools\Binn\ManagementStudio\ssms.exe: Unable to find an entry point named '?' in DLL 'PkgdefMgmt.dll'. 19/03/2017 10:16:02 PM - Initializing Install... 19/03/2017 10:16:02 PM - Microsoft.VisualStudio.ExtensionManager.InvalidExtensionPackageException: The file is not a valid VSIX package. at Microsoft.VisualStudio.ExtensionManager.InstallableExtensionImpl.ReadVSIXManifestFromPackage(Stream stream, CultureInfo preferredCulture) at Microsoft.VisualStudio.ExtensionManager.InstallableExtensionImpl..ctor(String path, CultureInfo preferredCulture) at Microsoft.VisualStudio.ExtensionManager.ExtensionEngineImpl.CreateInstallableExtension(String extensionPath, CultureInfo preferredCulture) at Microsoft.VisualStudio.ExtensionManager.ExtensionEngineImpl.CreateInstallableExtension(String extensionPath) at VSIXInstaller.App.GetInstallableData(String vsixPath, Boolean isRepairSupported, IEnumerable1& skuData) at
VSIXInstaller.App.Initialize(Boolean isRepairSupported) at
VSIXInstaller.App.Initialize() at
System.Threading.Tasks.Task
1.InnerInvoke() at System.Threading.Tasks.Task.Execute()

最佳答案

检查 VSIX 文件是否包含使其成为 VSIX v3 文件所需的文件:

extension.vsixmanifest list .json目录.json

并且 extension.vsixmanifest 文件包含先决条件部分

https://learn.microsoft.com/en-us/visualstudio/extensibility/how-to-migrate-extensibility-projects-to-visual-studio-2017

关于c# - 该文件不是有效的 VSIX 包,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/42891617/

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