2015-09-06 196 views
2

嘿,我安裝了Visual Studio 2013 Ultimate和Windows 10。我無法安裝VS Plugin "Strip'em"Visual Studio 2013 Strip'em插件問題Win10

它說我沒有所需的.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) 
+0

我已經修復了Jesse建議的安裝程序並將其上傳到http://www.grebulon.com/software/stripem.php。請確認它適用於您。 – grebulon

+0

@grebulon感謝它現在工作正常:) –

回答

3

問題可能是您在Windows 10上運行,因此在.NET 4.6。擴展明確發生在它的依賴清單上.NET 4.5的依賴性:

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

得到它安裝最簡單的方法是使用類似7zip的打開vsix,選擇extension.vsixmanifest,然後右鍵單擊並選擇編輯...從上下文菜單中選擇

刪除上述線,使得所述清單讀取:

<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將無法運行。

+0

它總是安裝程序。他們不斷改變... – grebulon

+0

聯繫作者@grebulon併發送給他一個更新的vsix。 – jessehouwing

+0

@ jessehouwing感謝它現在工作絕對好。 :) –