Install Visual Stuido 2017 and stuido2017 in an offline Environment

Source: Internet
Author: User

Install Visual Stuido 2017 and stuido2017 in an offline Environment
Install Visual Stuido 2017 in an offline Environment

 

0x00 nonsense written in front of the previous article because most of the work is carried out in offline environments, it is very troublesome to access the offline environment, so VS2010 was used for a long time. Later, I tried to replace VS2013. Everything went fine. Just copy the installation image to install it. After. NET Core 1.0 came out, I tried to install VS2015 in an offline environment. As a result, many pitfalls were encountered. The most pitfall is that the installation will prompt that the xxx file is damaged and the installation cannot continue. At the beginning, I thought the installation file was corrupted during the download process. As a result, I downloaded the file several times and found that the file was damaged. Then I went to the Internet to search, and there was no result. Later, if you want to use VS Code for development, you can install a. NET Core SDK. The results still show that the file is damaged. However, this time, the reason is that the installation file cannot be verified because of the lack of security certificates in the offline environment and the file is damaged. Follow the online tutorial to export the certificate from a computer with a certificate. Import the Certificate in an offline environment. The installation is normal and VS2015 is normal. 0x01 download Visual Studio download the required version of the installer fuse download line information directly run vs_community.exe online installation.
For offline installation, open a command line to go to the directory where vs_community.exe is located. In the blank directory of vs_community.exe, right-click shift and select Open command line here. Then run vs_community.exe -- layout c: \ vs2017layout to download the offline materials to: c: \ vs2017layout. To download the Chinese version, you can add the -- lang parameter: vs_community.exe -- layout c: \ vs1_layout -- lang zh-CN, and the list of languages supported by the -- lang parameter:
* Cs-CZ, Czech * de-DE, German * en-US, English * es-ES, Spanish * fr-FR, French * it-IT, italian * ja-JP, japan ese * ko-KR, Korean * pl-PL, Polish * pt-BR, Portuguese-Brazil * ru-RU, Russian * tr-TR, turkish * zh-CN, Chinese-Simplified * zh-TW, Chinese-Traditional

If you want to download all the files, the volume is large and many functions are not used. You can use the -- add parameter on the command line to select the data to be offline. For example, I usually use Web and Desktop, so use the following command to go offline:


vs_community.exe --layout c:\vs2017layout --add Microsoft.VisualStudio.Workload.ManagedDesktop --add Microsoft.VisualStudio.Workload.NetWeb --add Component.GitHub.VisualStudio --includeOptional --lang zh-CN


. NET Desktop and Office development:


vs_community.exe --layout c:\vs2017layout --add Microsoft.VisualStudio.Workload.ManagedDesktop --add Microsoft.VisualStudio.Workload.Office --includeOptional --lang en-US


C ++ Desktop development:


vs_community.exe --layout c:\vs2017layout --add Microsoft.VisualStudio.Workload.NativeDesktop --includeRecommended --lang en-US


For more selectable components, see: https://docs.microsoft.com/en-us/visualstudio/install/workload-component-id-vs-enterprise

--Layoutexample if it is empty, the example is the current directory. If it is empty, I will not input the example, and cut vs_community.exe to the directory to be downloaded, shift + Right-click the command line, and the -- layout parameter is empty, and download it directly to the current directory. 0x03 importing a security certificate think about the experience of installing VS2015 now VS2017 is so considerate. There is a directory named 'certificate' in the directory for downloading offline materials. Click in and double-click the security certificate in the installation. You can use the default configuration to skip the next step. If you enter a password, leave it empty. 0x04 The recommended Installation Method for Visual Studio 2017 is offline installation. For example:


vs_community.exe --layout c:\vs2017layout --add Microsoft.VisualStudio.Workload.ManagedDesktop --add Microsoft.VisualStudio.Workload.NetWeb --add Component.GitHub.VisualStudio --includeOptional --lang zh-CN


Use the following command during installation:


vs_community.exe --add Microsoft.VisualStudio.Workload.ManagedDesktop --add Microsoft.VisualStudio.Workload.NetWeb --add Component.GitHub.VisualStudio --includeOptional


Of course, you can also directly run setup.exe 0x05 to feel that most of the work is in the offline environment, so you are more concerned about the use of various development tools in the offline environment. It seems that VS2015 is the most complicated version of VS, and the minimum installation volume is also very large, which is inconvenient. Early. NET Core is too dependent on nuget. To use nuget in an offline environment, you have to build an nuget Service (however, it is easy to set up an nuget Service). Then, you can test a lot of packages. In contrast, VS2017 is much better. More welcome to my blog: http://durow.vip

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.