The official offline installation instructions -> Click to open
1. Download vs2019 boot program , select the version you need to download, I chose the Enterprise Edition vs_enterprise__184447765.1558180718.exe
2. The parameter setting command ( command parameter description ), the boot program download start vs2019
Command is as follows:
<Vs bootstrap exe> --layout <offline installation package download path> --add <function module> --lang <Language>
Specifies the path for the installation directory to create an offline cache, also offline installation package download: --layout
--add: one or more workloads to be added or the component ID. When specifying a plurality of workloads and components must be repeated for each run --add
line switch command. If you do not provide this argument, full-featured installation. Visual Studio workload and components ID -> Visual Studio Enterprise 2019 Component Catalog
Visual Studio core editor (Visual Studio Community Community 2017 comes with) ID: Microsoft.VisualStudio.Workload.CoreEditor Description: Visual Studio shell core experience, including syntax-aware code editor, source control and work item management. Azure Development ID: Microsoft.VisualStudio.Workload.Azure Description: for developing cloud applications, create resources and generate Azure SDK, tools, and project support, including Docker containers. Data storage and processing ID: Microsoft.VisualStudio.Workload.Data Description: Using SQL Server, Azure Data Lake or Hadoop connector, develop and test data solutions. Data analysis and scientific applications ID: Microsoft.VisualStudio.Workload.DataScience Description: languages and tools to create scientific data applications (including Python, R and F #) is used. .NET desktop development ID: Microsoft.VisualStudio.Workload.ManagedDesktop Description: Using C #, Visual Basic, and F # generation WPF, Windows Forms and console applications. Use the Unity game development ID: Microsoft.VisualStudio.Workload.ManagedGame Description: Creates 2D and 3D games using Unity (powerful cross-platform development environment). Use C ++ Linux development ID: Microsoft.VisualStudio.Workload.NativeCrossPlat Description: Create and debug applications running in a Linux environment. Use C ++ desktop development ID: Microsoft.VisualStudio.Workload.NativeDesktop Description: use in the Microsoft C ++ toolset, ATL or MFC generation Windows desktop applications. Use C ++ for game developers ID: Microsoft.VisualStudio.Workload.NativeGame Description: The DirectX, Unreal or Cocos2d backed by C ++ generation of powerful professional game. Using C ++ mobile development ID: Microsoft.VisualStudio.Workload.NativeMobile Description: Using C ++Generating suitable for cross-platform application iOS, Android, or Windows. .NET Core cross-platform development ID: Microsoft.VisualStudio.Workload.NetCoreTools Description: Using .NET Core, Core ASP.NET, HTML / JavaScript and applications including Docker containers generate cross-platform support. Use .NET mobile development ID: Microsoft.VisualStudio.Workload.NetCrossPlat Description: Use Xmarin generate suitable for iOS, Android or Windows cross-platform applications. ASP.NET and Web Development ID: Microsoft.VisualStudio.Workload.NetWeb Description: Using ASP.NET, ASP.NET Core, HTML / JavaScript and include support for container Docker generation Web applications. Node.js development ID: Microsoft.VisualStudio.Workload.Node Description: Use Node.js (event-driven asynchronous JavaScript runtime) to generate scalable network applications. Office / SharePoint development ID: Microsoft.VisualStudio.Workload.Office Note: Use C #, VB and JavaScript to create add-ins Office and SharePoint, SharePoint solutions and VSTO add-ins. Python developers ID: Microsoft.VisualStudio.Workload.Python Description: for Python editing, debugging, interactive development and source code management. Universal Windows platform ID: Microsoft.VisualStudio.Workload.Universal Description: Using C #, VB and JavaScript or C ++ (Optional) Create a Windows platform for general-purpose applications. Visual Studio Extension Development ID: Microsoft.VisualStudio.Workload.VisualStudioExtension Description: Create for Visual Studio add-ins and extensions, including new orders, code analyzers and tool windows. Mobile development using JavaScript ID: Microsoft.VisualStudio.Workload.WebCrossPlat Description: generating Android, iOS and the UWP tools for application of Apache Cordova.
--lang: and --layout
in combination to prepare the offline cache installed to use resource bundle containing the specified language, the language locale list:
Language locales list Language language cs - CZ Czech de - DE German EN - US English es - ES Spanish fr - FR French IT - IT Italian ja - JP Japanese Ko - KR Korean PL - PL Polish pt -BR Portuguese - Brazil ru - RU Russian TR - TR Turkish zh -CN Chinese - Simplified zh -TW Chinese - Traditional
For example
download the full-featured E: \ VS2019, and the language is Chinese:
vs_enterprise__184447765.1558180718.exe --layout E:\VS2019 --lang zh-CN
Complete Visual Studio layout requires at least 35 GB of disk space
For .NET .NET Web and desktop development, run:
vs_enterprise__184447765.1558180718.exe --layout E:\VS2019 --add Microsoft.VisualStudio.Workload.ManagedDesktop --add Microsoft.VisualStudio.Workload.NetWeb --add Component.GitHub.VisualStudio --includeOptional --lang zh-CN
In order to facilitate the implementation of, make a batch
echo off & color 0A cd /d %~dp0 set currentPath=%cd%\vs2019 echo currentPath=%currentPath% call vs_enterprise__184447765.1558180718.exe --layout "%currentPath%" --add Component.GitHub.VisualStudio --add Microsoft.VisualStudio.Workload.CoreEditor --add Microsoft.VisualStudio.Workload.ManagedDesktop --add Microsoft.VisualStudio.Workload.NetCoreTools --add Microsoft.VisualStudio.Workload.NetWeb --add Microsoft.VisualStudio.Workload.Universal --add Microsoft.VisualStudio.Workload.Python --includeOptional --lang zh-CN echo. & pause