報錯為:

此擴展不能安裝在任何當前安裝的產品上
相關錯誤日志:
2020/11/10 11:58:45 - Microsoft VSIX Installer
2020/11/10 11:58:45 - -------------------------------------------
2020/11/10 11:58:45 - vsixinstaller.exe version:
2020/11/10 11:58:45 - 15.9.3043
2020/11/10 11:58:45 - -------------------------------------------
2020/11/10 11:58:45 - Command line parameters:
2020/11/10 11:58:45 - C:\program files (x86)\microsoft visual studio\installer\resources\app\ServiceHub\Services\Microsoft.VisualStudio.Setup.Service\VSIXInstaller.exe,\\192.168.8.4\技術研究院\公共檔案夾\qt-vsaddin-msvc2017-2.3.0.vsix
2020/11/10 11:58:45 - -------------------------------------------
2020/11/10 11:58:45 - Microsoft VSIX Installer
2020/11/10 11:58:45 - -------------------------------------------
2020/11/10 11:58:51 - Initializing Install...
2020/11/10 11:58:52 - 擴展詳細資訊...
2020/11/10 11:58:52 - Identifier : QtVsTools.13121978-cd02-4fd0-89bd-e36f85abe16a
2020/11/10 11:58:52 - Name : Qt Visual Studio Tools
2020/11/10 11:58:52 - Author : The Qt Company Ltd.
2020/11/10 11:58:52 - Version : 2.3.0
2020/11/10 11:58:52 - Description : The Qt Visual Studio Tools allow developers to use the standard development environment without having to worry about any Qt-related build steps or tools.
2020/11/10 11:58:52 - Locale : en-US
2020/11/10 11:58:52 - MoreInfoURL : http://www.qt.io/
2020/11/10 11:58:52 - InstalledByMSI : False
2020/11/10 11:58:52 - SupportedFrameworkVersionRange : [4.6,)
2020/11/10 11:58:52 -
2020/11/10 11:58:52 - SignatureState : Unsigned
2020/11/10 11:58:52 - 支持的產品 :
2020/11/10 11:58:52 - Microsoft.VisualStudio.Pro
2020/11/10 11:58:52 - Version : [15.0]
2020/11/10 11:58:52 - Microsoft.VisualStudio.Premium
2020/11/10 11:58:52 - Version : [15.0]
2020/11/10 11:58:52 - Microsoft.VisualStudio.Ultimate
2020/11/10 11:58:52 - Version : [15.0]
2020/11/10 11:58:52 - Microsoft.VisualStudio.Community
2020/11/10 11:58:52 - Version : [15.0]
2020/11/10 11:58:52 -
2020/11/10 11:58:52 - 參考 :
2020/11/10 11:58:52 - 系統必備 :
2020/11/10 11:58:52 - -------------------------------------------------------
2020/11/10 11:58:52 - Identifier : Microsoft.VisualStudio.Component.CoreEditor
2020/11/10 11:58:52 - Name : Visual Studio core editor
2020/11/10 11:58:52 - Version : [15.0.26208.0,16.0)
2020/11/10 11:58:52 -
2020/11/10 11:58:52 - -------------------------------------------------------
2020/11/10 11:58:52 - Identifier : Microsoft.VisualStudio.Component.VC.CoreIde
2020/11/10 11:58:52 - Name : Visual Studio C++ core features
2020/11/10 11:58:52 - Version : [15.0.26208.0,16.0)
2020/11/10 11:58:52 -
2020/11/10 11:58:52 - -------------------------------------------------------
2020/11/10 11:58:52 - Identifier : Microsoft.VisualStudio.Component.VC.Tools.x86.x64
2020/11/10 11:58:52 - Name : VC++ 2017 v141 toolset (x86,x64)
2020/11/10 11:58:52 - Version : [15.0.26208.0,16.0)
2020/11/10 11:58:52 -
2020/11/10 11:58:52 - 簽名詳細資訊...
2020/11/10 11:58:52 - Extension is not signed.
2020/11/10 11:58:52 -
2020/11/10 11:58:52 - 正在搜索適用的產品...
2020/11/10 11:58:52 - 找到的已安裝產品 - 全域位置
2020/11/10 11:58:52 - 找到的已安裝產品 - Visual Studio Enterprise 2017
2020/11/10 11:59:18 - System.InvalidOperationException: VSHiveStub.exe failed: PkgdefManagement failed to create application: "0x80070020".
在 VSIXInstaller.LocationBasedSKU.get_RegRootHiveOverride()
在 VSIXInstaller.SupportedVSSKU.InitializeSettingsManager()
在 VSIXInstaller.SupportedVSSKU.get_Host()
在 VSIXInstaller.SupportedVSSKU.CreateExtensionEngine()
在 System.Lazy`1.CreateValue()
在 System.Lazy`1.LazyInitValue()
在 System.Lazy`1.get_Value()
在 VSIXInstaller.ExtensionService.GetExtensionEngineForApplicableSKU(ICommandLineData cmdLineData, SupportedVSSKU supportedSKU, IInstallableExtension installableExtension, List`1 applicableSKUs, Boolean isRepairSupported)
在 VSIXInstaller.ExtensionService.TryAddSkuToValidSkuList(ICommandLineData cmdLineData, SupportedVSSKU supportedSKU, IInstallableExtension extension, List`1 validSKUs, Boolean isRepairSupported)
2020/11/10 11:59:23 - VSIXInstaller.NoApplicableSKUsException: 此擴展不能安裝在任何當前安裝的產品上,
在 VSIXInstaller.ExtensionService.GetInstallableData(String vsixPath, String extensionPackParentName, Boolean isRepairSupported, IStateData stateData, IEnumerable`1& skuData)
在 VSIXInstaller.ExtensionPackService.IsExtensionPack(IStateData stateData, Boolean isRepairSupported)
在 VSIXInstaller.ExtensionPackService.ExpandExtensionPackToInstall(IStateData stateData, Boolean isRepairSupported)
在 VSIXInstaller.App.Initialize(Boolean isRepairSupported)
在 VSIXInstaller.App.Initialize()
在 System.Threading.Tasks.Task`1.InnerInvoke()
在 System.Threading.Tasks.Task.Execute()
--- 引發例外的上一位置中堆疊跟蹤的末尾 ---
在 Microsoft.VisualStudio.Telemetry.WindowsErrorReporting.WatsonReport.GetClrWatsonExceptionInfo(Exception exceptionObject)
在網上找了一堆資料:
有說換版本的
各版本下載地址:
https://download.qt.io/development_releases/vsaddin/

下了好幾個版本都是一樣的錯誤,真是沒點辦法!
有說修改組態檔的:

vsix 檔案實際就是個zip壓縮檔案,你可以用電腦的壓縮工具解壓
然后修改里面的


我直接就加了這么一行, 再壓碩訓去,再把檔案擴展名改為原來的, 結果運行直接 報包已經損壞了.....
這他媽的真的不行啊.....
有說可能是系統插件安裝多了,導致沖突,去洗掉它們,再重裝就可以解決:
C:\Users\Administrator \AppData\Local\Microsoft\VisualStudio\15.0_6c36aee5\Extensions
Adminitrator 對應你自己的用戶名
在這個目錄下,我一看,我這個目錄,哈插件也沒有啊,就幾個組態檔
所以這種方法也是不行的,,,,
從早上9點,一直整到下午2點,也是不抱希望了,導致我一直以為我安裝的企業版,這個插件不支持,
也就是想看看企業版目錄下到底與其它版本有什么區別?
也許是天降神靈啊:
最后在................. 我看到一個Extensions目錄,盡管里面哈我也看不懂,我也不敢問...(問gui去)
第6感 看看這個目錄下是些什么,

感覺與報錯的日志里有點關聯,
在 VSIXInstaller.ExtensionService.GetExtensionEngineForApplicableSKU(ICommandLineData cmdLineData, SupportedVSSKU supportedSKU, IInstallableExtension installableExtension, List`1 applicableSKUs, Boolean isRepairSupported)
何不洗掉這個目錄試試了...
再來安裝,奇跡般的安裝成功了,我的天啦...............

來到底改了哪里?
來 
https://blog.jdp.tw/archives/73
這個是別人的解決思路,也許對你有用哈,我試過了沒有效果....
就改了這么一點, 居然就成功安裝了! mmp,,,,太坑die了 .....
長長的舒了一口氣, 出門整根煙再說......................
轉載請註明出處,本文鏈接:https://www.uj5u.com/qianduan/210426.html
標籤:其他
上一篇:極客日報1107:爆料 華為鴻蒙手機 OS 開發者 Beta 版預計 12 月 18 日開放;程式員的幸福指數是如何下降的?
