我最近尝试在Visual Studio 2015中安装企业库6.0,但安装程序抛出错误:



我无法解决。

19-Dec-16 9:59:48 AM - Microsoft VSIX Installer
19-Dec-16 9:59:48 AM - -------------------------------------------
19-Dec-16 9:59:48 AM - Initializing Install...
19-Dec-16 9:59:48 AM - Extension Details...
19-Dec-16 9:59:48 AM -  Identifier         : A42E118F-C41F-47A2-ADB5-04CDEBF8EB90
19-Dec-16 9:59:48 AM -  Name               : EnterpriseLibrary.Config.v6
19-Dec-16 9:59:48 AM -  Author             : Microsoft
19-Dec-16 9:59:48 AM -  Version            : 6.0.1304.1
19-Dec-16 9:59:48 AM -  Description        : Launches the Microsoft Enterprise Library v6 Configuration Console
19-Dec-16 9:59:48 AM -  Locale             : en-US
19-Dec-16 9:59:48 AM -  MoreInfoURL        :
19-Dec-16 9:59:48 AM -  InstalledByMSI     : False
19-Dec-16 9:59:48 AM -  SupportedFrameworkVersionRange : [4.5]
19-Dec-16 9:59:48 AM -
19-Dec-16 9:59:50 AM -  SignatureState     : ValidSignature
19-Dec-16 9:59:50 AM -  SignedBy           : Microsoft Corporation
19-Dec-16 9:59:50 AM -  Certificate Info   :
19-Dec-16 9:59:50 AM -      -------------------------------------------------------
19-Dec-16 9:59:50 AM -      [Subject]       : CN=Microsoft Corporation, OU=MOPR, OU=OPC, O=Microsoft Corporation, L=Redmond, S=Washington, C=US
19-Dec-16 9:59:50 AM -      [Issuer]        : CN=Microsoft Code Signing PCA, O=Microsoft Corporation, L=Redmond, S=Washington, C=US
19-Dec-16 9:59:50 AM -      [Serial Number] : 33000000B2E6906F8BE7453D5B0001000000B2
19-Dec-16 9:59:50 AM -      [Not Before]    : 25-Jan-13 4:03:41 AM
19-Dec-16 9:59:50 AM -      [Not After]     : 25-Apr-14 4:03:41 AM
19-Dec-16 9:59:50 AM -      [Thumbprint]    : E4EEC5DFB7F413E5A15191DA00D017F97E3A6260
19-Dec-16 9:59:50 AM -
19-Dec-16 9:59:50 AM -  Supported Products :
19-Dec-16 9:59:50 AM -      Microsoft.VisualStudio.Ultimate
19-Dec-16 9:59:50 AM -          Version : [11.0]
19-Dec-16 9:59:50 AM -      Microsoft.VisualStudio.Premium
19-Dec-16 9:59:50 AM -          Version : [11.0]
19-Dec-16 9:59:50 AM -      Microsoft.VisualStudio.Pro
19-Dec-16 9:59:50 AM -          Version : [11.0]
19-Dec-16 9:59:50 AM -
19-Dec-16 9:59:50 AM -  References         :
19-Dec-16 9:59:50 AM -      -------------------------------------------------------
19-Dec-16 9:59:50 AM -      Identifier   : Microsoft.VisualStudio.MPF
19-Dec-16 9:59:50 AM -      Name         : Visual Studio MPF
19-Dec-16 9:59:50 AM -      Version      : [10.0,)
19-Dec-16 9:59:50 AM -      MoreInfoURL  :
19-Dec-16 9:59:50 AM -      Nested       : No
19-Dec-16 9:59:50 AM -
19-Dec-16 9:59:50 AM - Signature Details...
19-Dec-16 9:59:50 AM -  Extension is signed with a valid signature.
19-Dec-16 9:59:50 AM -
19-Dec-16 9:59:50 AM - Searching for applicable products...
19-Dec-16 9:59:51 AM - Found installed product - Microsoft Visual Studio Professional 2015
19-Dec-16 9:59:51 AM - Found installed product - Microsoft Visual Studio Community 2015
19-Dec-16 9:59:51 AM - Found installed product - Microsoft Visual Studio 2015 Shell (Integrated)
19-Dec-16 9:59:51 AM - Found installed product - Global Location
19-Dec-16 9:59:51 AM - Found installed product - ssms
19-Dec-16 9:59:51 AM - VSIXInstaller.NoApplicableSKUsException: This extension is not installable on any currently installed products.
   at VSIXInstaller.App.InitializeInstall(Boolean isRepairSupported)
   at VSIXInstaller.App.InitializeInstall()
   at System.Threading.Tasks.Task.InnerInvoke()
   at System.Threading.Tasks.Task.Execute()

有人可以帮我吗?

最佳答案

从日志文件中,我们可以得到此扩展在VS 2012 Ultimate/Premium/Professional上受支持,并且发现已安装的产品是VS 2015,因此弹出错误消息“此扩展不能在任何当前安装的产品上安装”。从Microsoft Enterprise Library 6的系统需求中我们也可以知道这一点。

要解决此问题,您可以查看this similar issue并直接下载Microsoft.Practices.EnterpriseLibrary.ConfigConsole.V6.VS2015.vsix (Source)并使用它进行安装,它对我而言效果很好。

10-06 06:39
查看更多