【问题标题】:Visual Studio 2013 Strip'em Plugin Issue Win10Visual Studio 2013 Strip'em 插件问题 Win10
【发布时间】:2015-09-06 09:44:43
【问题描述】:

嘿,我已经安装了 Visual Studio 2013 Ultimate 和 Windows 10。我无法安装VS Plugin "Strip'em"

它说我没有所需的 .Net 框架。但我已经安装了所有框架 3.5(2,3)、4 和 4.5 等。任何见解将不胜感激。

这是日志文件上下文。

9/6/2015 2:36:46 PM - Microsoft VSIX Installer
9/6/2015 2:36:46 PM - -------------------------------------------
9/6/2015 2:36:46 PM - Initializing Install...
9/6/2015 2:36:46 PM - Extension Details...
9/6/2015 2:36:46 PM -   Identifier      : 003a0f14-2226-41a9-8f63-dce243af9932
9/6/2015 2:36:46 PM -   Name            : Strip'em
9/6/2015 2:36:46 PM -   Author          : grebulon.com
9/6/2015 2:36:46 PM -   Version         : 1.0
9/6/2015 2:36:46 PM -   Description     : Visual Studio 2013 package. Save files with Unix or Windows line endings.
9/6/2015 2:36:46 PM -   Locale          : en-US
9/6/2015 2:36:46 PM -   MoreInfoURL     : http://www.grebulon.com/software/stripem.php
9/6/2015 2:36:46 PM -   InstalledByMSI  : False
9/6/2015 2:36:46 PM -   SupportedFrameworkVersionRange : [4.5]
9/6/2015 2:36:46 PM - 
9/6/2015 2:36:46 PM -   Supported Products : 
9/6/2015 2:36:46 PM -       Microsoft.VisualStudio.Pro
9/6/2015 2:36:46 PM -           Version : [12.0]
9/6/2015 2:36:46 PM - 
9/6/2015 2:36:46 PM -   References      : 
9/6/2015 2:36:46 PM -       -------------------------------------------------------
9/6/2015 2:36:46 PM -       Identifier   : Microsoft.VisualStudio.MPF.12.0
9/6/2015 2:36:46 PM -       Name         : Visual Studio MPF 12.0
9/6/2015 2:36:46 PM -       Version      : [12.0]
9/6/2015 2:36:46 PM -       MoreInfoURL  : 
9/6/2015 2:36:46 PM -       Nested       : No
9/6/2015 2:36:46 PM - 
9/6/2015 2:36:46 PM - 
9/6/2015 2:36:46 PM - Searching for applicable products...
9/6/2015 2:36:46 PM - Found installed product - Microsoft Visual Studio Ultimate 2013
9/6/2015 2:36:48 PM - The extension with ID '003a0f14-2226-41a9-8f63-dce243af9932' is not installed to Microsoft Visual Studio Ultimate 2013.
9/6/2015 2:36:48 PM - Found installed product - Microsoft Visual Studio Premium 2013
9/6/2015 2:36:48 PM - Found installed product - Microsoft Visual Studio Professional 2013
9/6/2015 2:36:48 PM - Found installed product - Microsoft Visual Studio 2013 Shell (Integrated)
9/6/2015 2:36:48 PM - Found installed product - Global Location
9/6/2015 2:36:51 PM - The following target products have been selected...
9/6/2015 2:36:51 PM -   Microsoft Visual Studio Ultimate 2013
9/6/2015 2:36:51 PM - 
9/6/2015 2:36:51 PM - Beginning to install extension to Microsoft Visual Studio Ultimate 2013...
9/6/2015 2:36:51 PM - Install Error : Microsoft.VisualStudio.ExtensionManager.MissingTargetFrameworkException: The extension 'Strip'em' requires a version of the .NET Framework that is not installed.
   at Microsoft.VisualStudio.ExtensionManager.ExtensionManagerService.CheckForValidDotNetFramework(IExtension extension)
   at Microsoft.VisualStudio.ExtensionManager.ExtensionManagerService.CheckForInstallBlockers(InstallableExtensionImpl extension, IInstalledExtensionList modifiedInstalledExtensionsList, Boolean isNestedExtension, Boolean& olderVersionInstalled)
   at Microsoft.VisualStudio.ExtensionManager.ExtensionManagerService.InstallInternal(InstallableExtensionImpl extension, Boolean perMachine, Boolean isNestedExtension, IDictionary`2 extensionsInstalledSoFar, List`1 extensionsUninstalledSoFar, IInstalledExtensionList modifiedInstalledExtensionsList, AsyncOperation asyncOp, UInt64 totalBytesToWrite, UInt64& totalBytesWritten)
   at Microsoft.VisualStudio.ExtensionManager.ExtensionManagerService.BeginInstall(IInstallableExtension installableExtension, Boolean perMachine, AsyncOperation asyncOp)
   at Microsoft.VisualStudio.ExtensionManager.ExtensionManagerService.InstallWorker(IInstallableExtension extension, Boolean perMachine, AsyncOperation asyncOp)

【问题讨论】:

  • 我已经按照 Jesse 建议的方式修复了安装程序并将其上传到 grebulon.com/software/stripem.php。请验证它是否适合您。
  • @grebulon 谢谢它现在可以正常工作了:)

标签: visual-studio-2013 plugins windows-10 line-endings


【解决方案1】:

问题可能是您在 Windows 10 上运行,因此使用的是 .NET 4.6。该扩展在其依赖清单中显式依赖 .NET 4.5:

<Dependency Id="Microsoft.Framework.NDP" DisplayName="Microsoft .NET Framework" Version="4.5" />

安装它的最简单方法是使用 7zip 之类的软件打开 vsix,选择 extension.vsixmanifest 并右键单击并从上下文菜单中选择 edit...

删除上面提到的行,以便清单显示:

<PackageManifest Version="2.0.0" xmlns="http://schemas.microsoft.com/developer/vsx-schema/2011">
  <Metadata>
    <Identity Id="003a0f14-2226-41a9-8f63-dce243af9932" Version="1.0" Language="en-US" Publisher="grebulon.com" />
    <DisplayName>Strip'em</DisplayName>
    <Description xml:space="preserve">Visual Studio 2013 package. Save files with Unix or Windows line endings.</Description>
    <MoreInfo>http://www.grebulon.com/software/stripem.php</MoreInfo>
  </Metadata>
  <Installation InstalledByMsi="false">
    <InstallationTarget Id="Microsoft.VisualStudio.Pro" Version="12.0" />
  </Installation>
  <Dependencies>
    <Dependency Id="Microsoft.VisualStudio.MPF.12.0" DisplayName="Visual Studio MPF 12.0" Version="12.0" />
  </Dependencies>
  <Assets>
    <Asset Type="Microsoft.VisualStudio.VsPackage" Path="Stripem.pkgdef" />
  </Assets>
</PackageManifest>

然后关闭记事本(或弹出的任何编辑器)。 7zip 会询问您是否要更新存档,选择yes。现在尝试再次安装扩展程序。

该依赖项可能应该使用过:

<Dependency Id="Microsoft.Framework.NDP" DisplayName="Microsoft .NET Framework" Version="[4.5,]" />

确保至少安装了 4.5,或者:

<Dependency Id="Microsoft.Framework.NDP" DisplayName="Microsoft .NET Framework" Version="[4.5,5.0)" />

要说任何主版本 4 高于 4.5 的框架版本都可以。

更多关于syntax of the dependency tag can be found here

由于 Framework 4.6 是就地安装,它会将 4.5 框架更新到 4.6,从而导致此问题。在这种情况下,我个人不会依赖框架版本,因为如果没有安装框架 4.5,Visual Studio 2013 将无法运行。

【讨论】:

  • 联系了作者@grebulon 并向他发送了更新的vsix。
  • @jessehouwing 谢谢它现在工作得很好。 :)
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2015-02-01
  • 1970-01-01
  • 2013-11-23
  • 2014-11-15
  • 2023-03-21
  • 1970-01-01
相关资源
最近更新 更多