简体   繁体   English

使用Visual Studio 2017离线安装Xamarin

[英]Offline Install Xamarin with Visual Studio 2017

We have a problem in our class where it's getting really impractical to download Visual Studio 2017 Community with Xamarin. 我们在课堂上遇到了一个问题,即使用Xamarin下载Visual Studio 2017社区变得非常不切实际。

What I would like to do is create an offline installer that consists of just VS Community 2017 and all required components to run Xamarin and the Azure SDK. 我想要做的是创建一个离线安装程序,它只包含VS Community 2017和运行Xamarin和Azure SDK所需的所有组件。

I have read the offline installation documentation here: https://docs.microsoft.com/en-us/visualstudio/install/create-an-offline-installation-of-visual-studio , but it seems aimed at installing all components (Which is over 20gb!). 我在这里阅读了离线安装文档: https//docs.microsoft.com/en-us/visualstudio/install/create-an-offline-installation-of-visual-studio ,但它似乎旨在安装所有组件(超过20gb!)。

Do any of you have a command or something else that would enable me to download just Visual Studio 2017 and all required components for Xamarin? 你们中的任何人都有一个命令或其他东西可以让我只下载Visual Studio 2017和Xamarin所需的所有组件吗? I don't require anything else - not even Windows app development tools. 我不需要任何其他东西 - 甚至不是Windows应用程序开发工具。

Please excute below command , It will download only Xamarin 请执行以下命令,它只下载Xamarin

vs_community.exe --layout c:\\vs2017offline -add Microsoft.VisualStudio.Workload.NetCrossPlat --lang en-US vs_community.exe --layout c:\\ vs2017offline -add Microsoft.VisualStudio.Workload.NetCrossPlat --lang en-US

Offline Workload package more info available here : 离线工作负载包更多信息可在此处获得:

https://docs.microsoft.com/en-us/visualstudio/install/workload-component-id-vs-community#mobile-development-with-net https://docs.microsoft.com/en-us/visualstudio/install/workload-component-id-vs-community#mobile-development-with-net

Note : Andriod SDK should be download from Google. 注意:Andriod SDK应该从Google下载。 Android SDK Setup (API Level) Android SDK设置(API级别)

Try download it manually. 尝试手动下载。 View file Catalog.json at installation root. 在安装根目录中查看文件Catalog.json。 Find string containing "Xamarin.VisualStudio": 查找包含“Xamarin.VisualStudio”的字符串:

{"id":"Xamarin.VisualStudio","version":"4.6.3.4","type":"Vsix","payloads":[{"fileName":"Xamarin.VisualStudio.vsix","sha256":"c082f47bc00da4420cd1e90f167ad4285688b5c5df1d115c5dda1f1ec2aa1ffb","size":492545242,"url":" https://download.visualstudio.microsoft.com/download/pr/11327837/d68d54e233c956ff79799fdf63753c54/Xamarin.VisualStudio.vsix "}],"vsixId":"Xamarin.VisualStudio", { “ID”: “Xamarin.VisualStudio”, “版本”: “4.6.3.4”, “类型”: “VSIX”, “有效载荷”:[{ “文件名”: “Xamarin.VisualStudio.vsix”, “SHA256” :“c082f47bc00da4420cd1e90f167ad4285688b5c5df1d115c5dda1f1ec2aa1ffb”,“size”:492545242,“url”:“ https://download.visualstudio.microsoft.com/download/pr/11327837/d68d54e233c956ff79799fdf63753c54/Xamarin.VisualStudio.vsix ”}],“vsixId”:“ Xamarin.VisualStudio”

here 这里

4.6.3.4 - version of Xamarin; 4.6.3.4 - Xamarin的版本;

https://download.visualstudio.microsoft.com/download/pr/11327837/d68d54e233c956ff79799fdf63753c54/Xamarin.VisualStudio.vsix - try download this file, then check file size and checksum, here sha256. https://download.visualstudio.microsoft.com/download/pr/11327837/d68d54e233c956ff79799fdf63753c54/Xamarin.VisualStudio.vsix - 尝试下载此文件,然后检查文件大小和校验和,这里是sha256。

If all ok, change file name to "Xamarin.VisualStudio.vsix" and put it to folder at root of instalation, and name it using id and version, here : 如果一切正常,请将文件名更改为“Xamarin.VisualStudio.vsix”并将其放在instalation根目录下的文件夹中,并使用id和version命名,此处:

Xamarin.VisualStudio,version=4.6.3.4 Xamarin.VisualStudio,版本4.6.3.4 =

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM