2017-08-25 187 views
0

我剛安裝了Visual Studio 2017年在我的Windows 10的企業和離線安裝,但我有一個工作量的問題:Xamarin 當我啓動Visual Studio安裝併到達Xamarin安裝,我得到這個錯誤:不能在Visual Studio安裝Xamarin 2017年

Package 'Microsoft.VisualStudio.Xamarin.Preparation,version=15.0.26621.2' failed to install. 
Search URL 
    https://aka.ms/VSSetupErrorReports?q=PackageId=Microsoft.VisualStudio.Xamarin.Preparation;PackageAction=Install;ReturnCode=1 
Details 
    Command executed: "c:\windows\syswow64\\cmd.exe" /C DEL /F /S /Q """C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\Extensions\Xamarin""" 
    Return code: 1 
    Return code details: Incorrect function. 
Log 
    C:\Users\santiaj_Adm\AppData\Local\Temp\dd_setup_20170825092313_007_Microsoft.VisualStudio.Xamarin.Preparation.log 
Impacted workloads 
    Mobile development with .NET (Microsoft.VisualStudio.Workload.NetCrossPlat,version=15.0.26606.0) 
Impacted components 
    Xamarin (Component.Xamarin,version=15.0.26711.1) 
    Xamarin Workbooks (Component.Xamarin.Inspector,version=15.0.26606.0) 

任何想法可能是錯誤的? 謝謝

回答

2

我發現你的錯誤在這裏,一個人發現你可能想嘗試一種變通方法: https://social.msdn.microsoft.com/Forums/sqlserver/en-US/dc0358cc-7554-4af3-9664-f892392d157e/package-microsoftvisualstudioxamarinpreparationversion150262280-failed-to-install?forum=vssetup

解決方法:

I got the same issue, here is workaround Create the folder C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\Common7\IDE\Extensions\Xamarin Copy any files to C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\Common7\IDE\Extensions\Xamarin Run the setup again. The root cause is that there is a command trying to delete some files under xamarin folder and it failed if there is no file in there.

如果不工作,也許試試這個:

Hi jenkstom, If the above didn't help, how about trying with directly download and install the Xamarin packages from: https://www.xamarin.com/download-it?_bt=101035044668&_bk=xamarin&_bm=e&gclid=Cj0KEQjwioHIBRCes6nP56Ti1IsBEiQAxxb5G2bCyosDgH-pB7hqJLAWdxB1dVFoZj_bufKCnO6AkKYaAtt88P8HAQ Please temporarily disable the AV software and firewall during the installation. As far as I know, you computer configuration meets the Xamarin install system requirements. Best Regards, 

+0

謝謝你隊友,但我仍然得到這個錯誤,我不知道發生了什麼,也許xamarin不能在Windows 10企業版? – Ferus7

+0

我會發現真的很奇怪。你是否按照解決方法?就像複製該地圖中的隨機文件一樣?恐怕我不能爲你測試任何東西,因爲我們不知道問題背後的原因 –

+0

你有使用離線安裝程序btw的原因嗎?也許試試其他? –