简体   繁体   English

如何离线安装Xamarin.Android for Visual Studio Enterprise 2015

[英]How to install Xamarin.Android for Visual Studio Enterprise 2015 offline

I want to install Xamarin for Android Development in Visual Studio 2015 Enterprise. 我想在Visual Studio 2015 Enterprise中为Android开发安装Xamarin。

While installing, Xamarin told me that I was missing a lot of features, so it would download and install them for me. 在安装时,Xamarin告诉我,我缺少很多功能,因此它将为我下载并安装它们。 The download size was around 2GB, and I have a really slow internet. 下载大小约为2GB,并且我的网速​​非常慢。

I wanted to know if there is a way to download Xamarin and all required components separately, using some download manager like IDM, and then be able to use it later to re-install/install on another PC. 我想知道是否可以使用IDM之类的下载管理器来单独下载Xamarin和所有必需的组件,然后以后可以使用它在另一台PC上重新安装/安装。

Also, I was able to find offline setups for JRE and JDK, and also Android Studio and Android SDK/NDK, but still, the download size is around 1.5GB, which I presume is for the required Android SDK libraries, APIs and tools. 此外,我能够找到JRE和JDK以及Android Studio和Android SDK / NDK的脱机安装程序,但是下载大小约为1.5GB,我认为这是必需的Android SDK库,API和工具的下载量。

So, I am just asking for a guide on downloading all the components and store them for installing later. 因此,我只是要求提供有关下载所有组件并存储它们以供以后安装的指南。

According to the official docs (whose pictures are outdated, by the way) you should login to your account and then head to the download page where you could find links to different versions of Xamarin. 根据官方文档 (顺便说一下,那些图片已经过时),您应该登录到自己的帐户,然后转到下载页面 ,在这里您可以找到指向不同版本的Xamarin的链接。

I did so, but all that's available there are older versions of Xamarin Studio and the universal installer. 我这样做了,但是所有可用的都是Xamarin Studio的旧版本和通用安装程序。 Similar searches on the Xamarin Forums yielded no results as well. 在Xamarin论坛上的类似搜索也没有结果。

There's a way to find the direct URL for each installer by checking the XML used by the Platform Installer (located at \\AppData\\Local\\Temp\\Xamarin\\downloads\\InstallationManifest.xml ). 通过检查平台安装程序使用的XML(位于\\AppData\\Local\\Temp\\Xamarin\\downloads\\InstallationManifest.xml ),可以找到一种用于每个安装程序的直接URL的方法。 I haven't tested whether installing them separately will work or not, but it probably will. 我尚未测试单独安装它们是否可以工作,但是可能会。 Just make sure to install them in the right order (and to install the Android SDK/NDK after installing Xamarin.Android) 只需确保以正确的顺序安装它们(并在安装Xamarin.Android之后安装Android SDK / NDK)

Here are the links to the latest versions, as of today: 这些是到今天为止最新版本的链接:

It'd be good if someone with a Mac could help me find the URL for Xamarin.iOS , but that's a start :P 最好是有Mac的人可以帮助我找到Xamarin.iOS的URL,但这只是一个开始:P

You can download this XML file and find the link of latest version of all required components.I did this and the latest links are : 您可以下载此XML文件并找到所有必需组件的最新版本链接。我做到了,最新链接为:

You don't even need to login for download them. 您甚至无需登录即可下载它们。

After 1st web install, backup %tmp%\\Xamarin\\downloads\\ , then on a new Windows: 第一次Web安装后,备份%tmp%\\Xamarin\\downloads\\ ,然后在新Windows上:

  1. Uninstall Java 1.8 if exists. 卸载Java 1.8(如果存在)。
  2. Manually install Java JDK 1.7u71 + GTK# + Android SDK (Install for anyone). 手动安装Java JDK 1.7u71 + GTK#+ Android SDK(为所有人安装)。
  3. Extract NDK to "C:\\Program Files (x86)\\Android\\android-ndk-r10e" , or make NTFS junction to it ( not to run out of C: space later ). 将NDK提取到"C:\\Program Files (x86)\\Android\\android-ndk-r10e" ,或将NTFS "C:\\Program Files (x86)\\Android\\android-ndk-r10e"到该文件(以后不要用尽C:空间 )。
  4. Run XamarinInstaller having just *.zip files in %tmp%\\Xamarin\\downloads\\ , when you see that current download is "XamarinStudio", disconnect Internet (you can delete the NDK now). 运行XamarinInstaller,该文件仅在%tmp%\\Xamarin\\downloads\\具有* .zip文件,当您看到当前下载的文件为“ XamarinStudio”时,断开Internet连接(您现在可以删除NDK)。
  5. When you see above the progress bar: "Downloading Xamarin Studio", you can close the web installer. 在进度条上方看到“下载Xamarin Studio”时,您可以关闭Web安装程序。
  6. Manually install Xamarin.VisualStudio, and if you want, XamarinStudio. 手动安装Xamarin.VisualStudio,如果需要,请手动安装XamarinStudio。

Step 4 require Internet, but noting to download. 步骤4需要Internet,但要下载。

To make NTFS junction, from "C:\\Program Files (x86)\\Android" prompt: 要建立NTFS连接,请从“ C:\\ Program Files(x86)\\ Android”提示符下:

mklink /j android-ndk-r10e T:\\android-ndk-r10e

where T: can be USB drive, but not Network drive. 其中T:可以是USB驱动器,但不能是网络驱动器。

I know it's a link only answer (copyright!), but there are step-by-step instructions including screenshots of how to do that: 我知道这是仅链接的答案(版权所有!),但是有分步说明,包括有关如何操作的屏幕截图:

Installing Xamarin Made Easy with Offline Installation 通过离线安装轻松安装Xamarin

I've not tried it, but it should help you. 我没有尝试过,但是它可以为您提供帮助。

Found this: 发现了这一点:

http://ionemind.com/content/get-direct-download-links-xamarin http://ionemind.com/content/get-direct-download-links-xamarin

Links to XML files with direct links to necessary components for Xamarin, including Xamarin for Visual Studio (version 4.5, for VS 2013 and 2015). 链接到XML文件,并直接链接到Xamarin的必要组件,包括Xamarin for Visual Studio(VS 2013和2015的4.5版)。


Another link I found: 我发现的另一个链接:

https://dl.xamarin.com/XamarinforVisualStudio/Windows/Xamarin.VisualStudio_4.8.0.1289738.msi https://dl.xamarin.com/XamarinforVisualStudio/Windows/Xamarin.VisualStudio_4.8.0.1289738.msi

I had installed Xamarin Studio 5 and then it autoupdated its components (to Xamarin Studio 6.3 and the mentioned VisualStudio Tools 4.8). 我已经安装了Xamarin Studio 5,然后它自动更新了其组件(到Xamarin Studio 6.3和提到的VisualStudio Tools 4.8)。
Then in the " AppData/Roaming/Xamarin XX " I found a folder for temp downloads. 然后,在“ AppData / Roaming / Xamarin XX ”中,我找到了一个用于临时下载的文件夹。 There was the MSI file. 有MSI文件。
Then I just searched for this exact MSI name to get a direct link. 然后,我只是搜索了这个确切的MSI名称以获取直接链接。
(on this site https://itblogdsi.blog.fc2.com/blog-entry-23.html ) (在此网站上https://itblogdsi.blog.fc2.com/blog-entry-23.html

There's actually some info about releases and MSI names and it has Xamarin.VisualStudio_4.9.0.1538920.msi so replace this part in the MSI link above. 实际上,有一些有关版本和MSI名称的信息,它具有Xamarin.VisualStudio_4.9.0.1538920.msi,因此请在上面的MSI链接中替换此部分。

It's for VS 2015 only. 仅适用于VS 2015。

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

相关问题 如何为Xamarin.Android设置Visual Studio? - How to setup Visual Studio for Xamarin.Android? 如何在 Visual Studio 2017 上为 Xamarin.Android 安装 Android SDK 和 Java 开发工具包 - How to install Android SDK and Java Development Kit for Xamarin.Android on Visual Studio 2017 在Visual Studio社区2015中脱机安装xamarin - Offline installation of xamarin in Visual Studio Community 2015 使用Visual Studio 2017离线安装Xamarin - Offline Install Xamarin with Visual Studio 2017 Visual Studio 2017RC xamarin.android返回“ java.lang.OutOfMemoryError”,VS2015不? - Visual Studio 2017RC xamarin.android returns “java.lang.OutOfMemoryError”, VS2015 does'nt? Xamarin如何为我现有的Visual Studio 2015 Enterprise下载和安装? - How and where can Xamarin downloaded and installed for my existing Visual Studio 2015 Enterprise? 如何使用 Xamarin Visual Studio 2015 构建 Android App Bundle? - How to build Android App Bundle using Xamarin Visual Studio 2015? 如何在Visual Studio Community 2015中为Android更新Xamarin - How to update Xamarin for Android within Visual Studio Community 2015 Xamarin.Android Projects未能在Android的visual studio模拟器中部署 - Xamarin.Android Projects failed to deploy in visual studio emulator for android 当还安装了Visual Studio 2013时,如何为Visual Studio 2015安装Xamarin? - How to install Xamarin for Visual Studio 2015 when Visual Studio 2013 is installed too?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM