{"id":32423,"date":"2017-07-20T11:08:34","date_gmt":"2017-07-20T18:08:34","guid":{"rendered":"https:\/\/blog.xamarin.com\/?p=32423"},"modified":"2017-07-20T11:08:34","modified_gmt":"2017-07-20T18:08:34","slug":"installing-visual-studio-2017-made-easy","status":"publish","type":"post","link":"https:\/\/devblogs.microsoft.com\/xamarin\/installing-visual-studio-2017-made-easy\/","title":{"rendered":"Installing Visual Studio 2017 Made Easy"},"content":{"rendered":"<p>\t\t\t\tVisual Studio has evolved quite significantly since its introduction ten years ago, from IDE features to the integration of various DevOps scenarios. With Visual Studio 2017, even the installation experience has changed; developers can now select the components that they wish to download and install, as well as install various releases of Visual Studio side-by-side. Let&#8217;s see how we can make an offline installer for Visual Studio 2017, along with Xamarin, with a view to use the offline installer multiple times on other machines. This blog post covers all editions of Visual Studio 2017 including Community, Professional, Enterprise, and Preview releases.<\/p>\n<h2>Grab the Installer<\/h2>\n<p><img decoding=\"async\" class=\"aligncenter size-full wp-image-32430\" src=\"https:\/\/devblogs.microsoft.com\/wp-content\/uploads\/sites\/44\/2019\/03\/vs-offline-012.png\" alt=\"\" width=\"750\" \/><\/p>\n<p>Visit the\u00a0<a href=\"https:\/\/www.visualstudio.com\/vs\/\" target=\"_blank\">Visual Studio website<\/a> and\u00a0download the installer. You can also download the preview installer <a href=\"https:\/\/www.visualstudio.com\/vs\/preview\/\" target=\"_blank\">here<\/a>.<\/p>\n<p>Once you&#8217;ve downloaded the executable, rename it to something readable so it will be easier to use in the command line interface later. For this example, we&#8217;ll name ours <code>vs_enterprise.exe<\/code>.<\/p>\n<h2>Download Contents for Offline Install<\/h2>\n<p>Visual Studio allows you to build apps for many platforms, using many technologies, making the download size is significant. Luckily, you can download just the required components for\u00a0mobile development if you only develop for mobile platforms. If you wish to download everything Visual Studio has to offer, run the following command on your command prompt:<\/p>\n<p><code>C:\\&gt;vs_enterprise.exe --layout C:\\VS2017 --lang en-US<\/code><\/p>\n<p>This will download <em>all<\/em> of the installation components, with the language set to English (United States), inside the C:\\VS2017 folder. Remember, this can be huge in size (usually in excess of 20GB).<\/p>\n<p>There is also an option to download only the components that are required for cross-platform mobile development. These are packaged into <em>workloads<\/em>. For example:<\/p>\n<p><code>C:\\&gt;vs_enterprise.exe --layout C:\\VS2017 --lang en-US --add Microsoft.VisualStudio.Workload.NetCrossPlat<\/code><\/p>\n<p>&#8230;will download Xamarin and related components, whereas&#8230;<\/p>\n<p><code>C:\\&gt;vs_enterprise.exe --layout C:\\VS2017 --lang en-US --add Microsoft.VisualStudio.Workload.Universal<\/code><\/p>\n<p>&#8230;will download components required for building Universal Windows Platform applications. The entire list of workloads is available <a href=\"https:\/\/docs.microsoft.com\/en-gb\/visualstudio\/install\/workload-and-component-ids\" target=\"_blank\">here<\/a>.<\/p>\n<p>Almost every mobile app needs to connect to at least one service, such as ASP.NET MVC WebAPI hosted inside Azure. Additional components are required to build and use such services. The following command installs all required components:<\/p>\n<p><code>C:\\&gt;vs_enterprise.exe --layout C:\\VS2017 --lang en-US --add Microsoft.VisualStudio.Workload.Azure Microsoft.VisualStudio.Workload.ManagedDesktop Microsoft.VisualStudio.Workload.NetCoreTools Microsoft.VisualStudio.Workload.NetCrossPlat Component.Android.NDK.R13B Component.Android.SDK23 Component.Xamarin Component.Xamarin.Inspector Component.Xamarin.Profiler Component.Xamarin.RemotedSimulator Microsoft.VisualStudio.Workload.NetWeb Microsoft.VisualStudio.Workload.Universal<\/code><\/p>\n<p><img decoding=\"async\" class=\"aligncenter size-full wp-image-32435\" src=\"https:\/\/devblogs.microsoft.com\/wp-content\/uploads\/sites\/44\/2019\/03\/vs-offline-03.png\" alt=\"\" width=\"900\" \/><\/a><\/p>\n<p>Once all of the components are downloaded, look for the certificate folder. Install all of the certificates before you run the installer.<\/p>\n<p><img decoding=\"async\" class=\"aligncenter size-full wp-image-32436\" src=\"https:\/\/devblogs.microsoft.com\/wp-content\/uploads\/sites\/44\/2019\/03\/vs-offline-04.png\" alt=\"\" width=\"940\" height=\"634\" \/><\/a><\/p>\n<p>Now you can run the offline installer from your folder. It will launch and install all of the components you selected.<\/p>\n<p><img decoding=\"async\" class=\"aligncenter size-full wp-image-32438\" src=\"https:\/\/devblogs.microsoft.com\/wp-content\/uploads\/sites\/44\/2019\/03\/vs-offline-05.png\" alt=\"\" width=\"750\" \/><\/a><\/p>\n<h2>Verify Installation<\/h2>\n<p>Once the installation is complete, start Visual Studio and check for any updates available for Visual Studio, along with Android SDKs (from Tools &gt; Android &gt; Android SDK Manager), etc.<\/p>\n<p>Create a new cross-platform app project once all of the updates are installed, Xamarin.Forms for example, and run it on your device or emulator. If you get the app running with a &#8216;Welcome to Xamarin.Forms&#8217; message, then you have installed Visual Studio with all of the required tools for cross-platform mobile development.<\/p>\n<h2>Wrapping Up<\/h2>\n<p>If you have a development team of more than a handful of developers, or your internet connection has limited bandwidth (or the computers are simply not connected to the internet), then taking the time to create an offline installer for Visual Studio 2017 is definitely a worthy consideration, saving time and valuable resources. You can find more information about Offline Installation an related issues <a href=\"https:\/\/docs.microsoft.com\/en-gb\/visualstudio\/install\/install-vs-inconsistent-quality-network\" target=\"_blank\">here<\/a>.\t\t<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Visual Studio has evolved quite significantly since its introduction ten years ago, from IDE features to the integration of various DevOps scenarios. With Visual Studio 2017, even the installation experience has changed; developers can now select the components that they wish to download and install, as well as install various releases of Visual Studio side-by-side. [&hellip;]<\/p>\n","protected":false},"author":549,"featured_media":39167,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[2],"tags":[4],"class_list":["post-32423","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-developers","tag-xamarin-platform"],"acf":[],"blog_post_summary":"<p>Visual Studio has evolved quite significantly since its introduction ten years ago, from IDE features to the integration of various DevOps scenarios. With Visual Studio 2017, even the installation experience has changed; developers can now select the components that they wish to download and install, as well as install various releases of Visual Studio side-by-side. [&hellip;]<\/p>\n","_links":{"self":[{"href":"https:\/\/devblogs.microsoft.com\/xamarin\/wp-json\/wp\/v2\/posts\/32423","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/devblogs.microsoft.com\/xamarin\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/devblogs.microsoft.com\/xamarin\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/xamarin\/wp-json\/wp\/v2\/users\/549"}],"replies":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/xamarin\/wp-json\/wp\/v2\/comments?post=32423"}],"version-history":[{"count":0,"href":"https:\/\/devblogs.microsoft.com\/xamarin\/wp-json\/wp\/v2\/posts\/32423\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/xamarin\/wp-json\/wp\/v2\/media\/39167"}],"wp:attachment":[{"href":"https:\/\/devblogs.microsoft.com\/xamarin\/wp-json\/wp\/v2\/media?parent=32423"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/xamarin\/wp-json\/wp\/v2\/categories?post=32423"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/xamarin\/wp-json\/wp\/v2\/tags?post=32423"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}