我想尝试使用VS 2017社区版的新Blazor平台,但无法安装扩展程序。这是安装插件时生成的日志文件。
我的.net frameowrk是4.7.x,这个扩展需要框架4.6.1,但我相信.net框架是向后兼容的,所以它一定不是问题。
Microsoft VSIX Installer
-------------------------------------------
vsixinstaller.exe version:
15.6.152+ge95e4dd1ce
-------------------------------------------
Command line parameters:
C:\Program Files (x86)\Microsoft Visual Studio\Installer\resources\app\ServiceHub\Services\Microsoft.VisualStudio.Setup.Service\VSIXInstaller.exe,C:\Users\vicky\Downloads\Microsoft.VisualStudio.BlazorExtension.vsix
-------------------------------------------
Microsoft VSIX Installer
-------------------------------------------
Initializing Install...
Extension Details...
Identifier : Microsoft.VisualStudio.BlazorExtension
Name : ASP.NET Core Blazor Language Services
Author : Microsoft
Version : 15.7.10237
Description : Provides Visual Studio support for ASP.NET Core Blazor
Locale : en-US
MoreInfoURL :
InstalledByMSI : False
SupportedFrameworkVersionRange : [4.6.1,)
SignatureState : ValidSignature
SignedBy : Microsoft Corporation
Certificate Info :
-------------------------------------------------------
[Subject] : CN=Microsoft Corporation, OU=OPC, O=Microsoft Corporation, L=Redmond, S=Washington, C=US
[Issuer] : CN=Microsoft Code Signing PCA 2010, O=Microsoft Corporation, L=Redmond, S=Washington, C=US
[Serial Number] : 33000001FC5DB8191027A666C10000000001FC
[Not Before] : 05-10-2017 23:56:08
[Not After] : 05-10-2018 23:56:08
[Thumbprint] : 5E940B33DEAE5945F506ADAB946A997867A40FEF
Supported Products :
Microsoft.VisualStudio.Community
Version : [15.0.27512,16.0)
References :
Prerequisites :
-------------------------------------------------------
Identifier : Microsoft.VisualStudio.Component.Web
Name : ASP.NET and web development tools
Version : [15.7.27520.0,16.0)
Signature Details...
Extension is signed with a valid signature.
Searching for applicable products...
Found installed product - Global Location
Found installed product - Visual Studio Community 2017
VSIXInstaller.NoApplicableSKUsException: This extension is not installable on any currently installed products.
at VSIXInstaller.App.GetInstallableData(String vsixPath, Boolean isRepairSupported, IEnumerable`1& skuData)
at VSIXInstaller.App.Initialize(Boolean isRepairSupported)
at VSIXInstaller.App.Initialize()
at System.Threading.Tasks.Task`1.InnerInvoke()
at System.Threading.Tasks.Task.Execute()
答案 0 :(得分:0)
我遇到了同样的问题,马丁提出的更新Visual Studio的建议解决了这个问题。如果安装程序找到产品,但版本号不是正确的产品,则会抛出VSIXInstaller.NoApplicableSKUsException
。
我将VS更新为15.8.7,并且能够通过Visual Studio安装程序安装扩展。