visual-studio-2013 - Visual Studio 2013 Strip'em 插件问题 Win10

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

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

它说我没有所需的 .Net Framework。但我已经安装了所有框架 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)

最佳答案

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

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

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

删除上面提到的行,以便 list 显示为:

<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 会询问您是否要更新存档,选择。现在尝试再次安装扩展。

依赖项可能应该使用:

<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 将无法运行。

关于visual-studio-2013 - Visual Studio 2013 Strip'em 插件问题 Win10,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32422143/

相关文章:

c++ - 'mem_fun' : is not a member of 'std'

c# - 应用程序不会启动。没有命中断点。没有异常(exception)

MySQL 5.7 如何在 mysqld --initialize 之后选择 root 密码

node.js - 在reactApp创建中使用Webpack时出错-configuration.output.path : The provided value "./" is not an absolute path!“

asp.net - 使用多个项目时出现 Newtonsoft.Json.dll 问题

c# - 使用未分配的局部变量

java - 如果指定了参数,则从 Maven 运行 java 类

android - 如何仅在 cordova 4.0 的单个页面上覆盖后退按钮?

c# - Unity 的 iOS 插件

c# - 枚举值的 GetCustomAttributes 返回一个空数组