7

我試圖安裝的唯一支持的Visual Studio 2017年我用專業的延伸檢測,我從來沒有安裝RC,只有RTM版本。但是,VS 2017未被檢測到(請參閱下面的安裝日誌)。其他擴展安裝得很好,大概是因爲它們也支持我已經安裝的VS 2015。這些擴展也都在2015年和2017年的Visual Studio 2017年不會被擴展安裝

我試圖修復安裝,然後完全卸載並重新安裝上顯示,但一切都沒有固定的問題。具體的擴展名是Roslynator 2017

我怎樣才能解決這個如此VS 2017檢測,我可以爲它安裝擴展?

安裝日誌:

3/15/2017 2:21:53 PM - Microsoft VSIX Installer 
3/15/2017 2:21:53 PM - ------------------------------------------- 
3/15/2017 2:21:53 PM - Initializing Install... 
3/15/2017 2:21:54 PM - Extension Details... 
3/15/2017 2:21:54 PM - Identifier   : 9289a8ab-1bb6-496b-9992-9f7ea27f66a8 
3/15/2017 2:21:54 PM - Name    : Roslynator 2017 
3/15/2017 2:21:54 PM - Author    : Josef Pihrt 
3/15/2017 2:21:54 PM - Version   : 1.2.51 
3/15/2017 2:21:54 PM - Description  : A collection of 170+ analyzers and 170+ refactorings for C#, powered by Roslyn. 
3/15/2017 2:21:54 PM - Locale    : en-US 
3/15/2017 2:21:54 PM - MoreInfoURL  : http://github.com/JosefPihrt/Roslynator 
3/15/2017 2:21:54 PM - InstalledByMSI  : False 
3/15/2017 2:21:54 PM - SupportedFrameworkVersionRange : [4.6,) 
3/15/2017 2:21:54 PM - 
3/15/2017 2:21:54 PM - SignatureState  : Unsigned 
3/15/2017 2:21:54 PM - Supported Products : 
3/15/2017 2:21:54 PM -  Microsoft.VisualStudio.Community 
3/15/2017 2:21:54 PM -   Version : [15.0,16.0) 
3/15/2017 2:21:54 PM -  Microsoft.VisualStudio.Pro 
3/15/2017 2:21:54 PM -   Version : [15.0,16.0) 
3/15/2017 2:21:54 PM -  Microsoft.VisualStudio.Enterprise 
3/15/2017 2:21:54 PM -   Version : [15.0,16.0) 
3/15/2017 2:21:54 PM - 
3/15/2017 2:21:54 PM - References   : 
3/15/2017 2:21:54 PM -  ------------------------------------------------------- 
3/15/2017 2:21:54 PM -  Identifier : Microsoft.VisualStudio.MPF.15.0 
3/15/2017 2:21:54 PM -  Name   : Visual Studio MPF 15.0 
3/15/2017 2:21:54 PM -  Version  : [15.0,16.0) 
3/15/2017 2:21:54 PM -  MoreInfoURL : 
3/15/2017 2:21:54 PM -  Nested  : No 
3/15/2017 2:21:54 PM - 
3/15/2017 2:21:54 PM - Signature Details... 
3/15/2017 2:21:54 PM - Extension is not signed. 
3/15/2017 2:21:54 PM - 
3/15/2017 2:21:54 PM - Searching for applicable products... 
3/15/2017 2:21:54 PM - Found installed product - Microsoft Visual Studio Enterprise 2015 
3/15/2017 2:21:54 PM - Found installed product - Microsoft Visual Studio Professional 2015 
3/15/2017 2:21:54 PM - Found installed product - Microsoft Visual Studio Community 2015 
3/15/2017 2:21:54 PM - Found installed product - Microsoft Visual Studio 2015 Shell (Integrated) 
3/15/2017 2:21:54 PM - Found installed product - Global Location 
3/15/2017 2:21:54 PM - 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() 
+2

VS2017發生了很大的變化,他們確實需要解決VS2015所帶來的巨大安裝問題。基本的MSDN文章[在這裏](https://docs.microsoft.com/en-us/visualstudio/extensibility/how-to-migrate-extensibility-projects-to-visual-studio-2017)。引用「所有VSIX項目都需要單向升級到Visual Studio 2017的主要版本」。 –

回答

2

從日誌文件看,它看起來像一個較老的vsixinstaller.exe試圖安裝您的擴展,而不是從VS 2017中的一個。它應該像 「C:\ Program Files(x86)\ Microsoft Visual Studio \ 2017年\企業\ Common7 \ IDE \ VSIXInstaller.exe」

嘗試與Roslynator.VisualStudio.1.2.51.vsix明確地運行它作爲一個參數。

+0

我沒有得到說明...,請改進它們。當你談論使用Roslynator運行它時,你指的是什麼? –

+0

@ArielAltamirano運行「[full_path] \ VSIXInstaller.exe Roslynator.VisualStudio.1.2.51.vsix」 –

-2

擴展必須專門爲每個VS版本重新編譯,引用的DLL VS-S是不同的,因此,無論是工作或2015年不應該的問題很少。

a)你可以試試作者(打開一個問題左右),這可能是最好的接觸。

b)或者有一件事可能會嘗試來自己重新編譯源代碼,因爲這可能會過濾出可能的版本控制怪癖。這幫助了我幾次。您需要在「其他工具集」下添加您的設置「Visual Studio擴展開發」(只需重新運行安裝文件和修改),並且您應該能夠構建代碼(儘管每個擴展可能有一些具體細節)。鑑於該工具是開源的,這可能是我要採用的路線。
至於爲什麼(您可能遇到問題),很難說,我自己有一個擴展有問題,它可能是一個錯誤(因爲2017年還有點新鮮),它可以是某種DLL版本問題,它可能是你的設置。所以,你也可以嘗試全新安裝或...

C)嘗試在另一臺機器上的總是有幫助的

+0

這樣的一般答案已過時。 –

+0

@LexLi我同意部分原因,我試圖給出一般性建議(也沒有假裝成爲VS2017的專家)。另一方面,擴展在2017年很好地工作,至少在很多機器上,並且考慮到它是開源的,它可能由OP來嘗試解決他的設置問題(這就是編譯派上用場的原因)。此外,我做了解壓縮.vsix和所有顯然看起來有序,所以沒有明顯的(對我來說)問題,針對等。此外,VSix不警告依賴性問題。最後安裝完整的SDK也可能有助於解決一些可能的問題。即我沒有看到這裏的其他鏈接更有幫助。 – NSGaga

1

也許你「唯一」必須使用正確的安裝程序。一個用於Visual Studio 2107.所以你的路徑應該在任何其他VS版本之前列出C:\ Program Files(x86)\ Microsoft Visual Studio \ 2017 \ Professional \ Common7 \ IDE。

專業版必須替換爲安裝的專業版。企業版,旗艦版,...

2

按下Win + R和寫入正確的版本VSIXIntaller的路徑。例如, 。

「E:\微軟的Visual Studio \ 2017年\企業\ Common7 \ IDE \ VSIXInstaller.exe」 「C:\ Users \用戶jd​​onoso.IMLG \下載\ Ankh.VS15Package.vsix」

我有3個版本的Visual Studio,但正確的安裝程序是VS2017,因爲該軟件包用於VS2017。考慮到這一點。

這就是爲什麼我有同樣的錯誤。使用正確的版本解決它。

相關問題