沒(méi)有網(wǎng)絡(luò),怎么安裝 VS2019 呢?
如果電腦或者云桌面沒(méi)有連接到外網(wǎng),怎么安裝 VS2019
呢?我們可以使用可以連接到外網(wǎng)的計(jì)算機(jī)制作離線(xiàn)安裝包,具體方式如下:
在官網(wǎng)下載 VS2019
的在線(xiàn)安裝包:
https://visualstudio.microsoft.com/zh-hans/downloads/
新建一個(gè)文件夾接收下載的文件:D:\VS2019
。將離線(xiàn)安裝程序放入該文件夾,若需要完整離線(xiàn)安裝包,則輸入以下命令:
.\vs_community_2019.exe --layout D:\VS2019 --lang en-US zh-CN
如果僅需 .NET 桌面開(kāi)發(fā)
、 C++ 桌面開(kāi)發(fā)
(英文加中文),則輸入以下命令:
.\vs_community_2019.exe --layout D:\VS2019 --add Microsoft.VisualStudio.Workload.ManagedDesktop --add Microsoft.VisualStudio.Workload.NativeDesktop --includeRecommended --lang en-US zh-CN
開(kāi)始下載后,會(huì)先啟動(dòng) Visual Studio Installer
的界面,然后會(huì)再啟動(dòng)一個(gè)顯示下載進(jìn)度日志的命令行。下載完畢后,啟動(dòng) vs_setup.exe
就可以開(kāi)始安裝了
如果第一次沒(méi)有下載完整的離線(xiàn)安裝包,后期想再添加組件,則需要知道組件的ID:
添加 Unity開(kāi)發(fā)支持
組件
.\vs_community_2019.exe --layout D:\VS2019 --add Microsoft.VisualStudio.Workload.ManagedGame --lang en-US zh-CN
添加 MFC支持
組件
.\vs_community_2019.exe --layout D:\VS2019 --add Microsoft.VisualStudio.Component.VC.ATLMFC --lang en-US zh-CN
添加 C++/CLI 支持
組件
.\vs_community_2019.exe --layout D:\VS2019 --add Microsoft.VisualStudio.Component.VC.CLI.Support --lang en-US zh-CN
安裝 HelpViewer
.\vs_community_2019.exe --layout D:\VS2019 --add Microsoft.Component.HelpViewer --lang en-US zh-CN
查看VS2019的工作負(fù)荷和組件ID:
https://learn.microsoft.com/zh-cn/visualstudio/install/workload-component-id-vs-community?view=vs-2019
使用 C++ 的桌面開(kāi)發(fā)
ID: Microsoft.VisualStudio.Workload.NativeDesktop
描述: 使用所選工具(包括 MSVC、Clang、CMake 或 MSBuild)生成適用于 Windows 的新式 C++ 應(yīng)用
組件 ID | 屬性 | 依賴(lài)項(xiàng)類(lèi)型 |
---|---|---|
Microsoft.Component.MSBuild | MSBuild | 必需 |
Microsoft.VisualStudio.Component.ClassDesigner | 類(lèi)設(shè)計(jì)器 | 必需 |
Microsoft.VisualStudio.Component.CodeMap | 代碼圖 | 必需 |
Microsoft.VisualStudio.Component.GraphDocument | DGML 編輯器 | 必需 |
Microsoft.VisualStudio.Component.Roslyn.Compiler | C# 和 Visual Basic Roslyn 編譯器 | 必需 |
Microsoft.VisualStudio.Component.SQL.LocalDB.Runtime | SQL Server Express 2016 LocalDB | 必需 |
Microsoft.VisualStudio.Component.TextTemplating | 文本模板轉(zhuǎn)換 | 必需 |
Microsoft.VisualStudio.Component.VC.CoreIde | C++ 核心功能 | 必需 |
Microsoft.VisualStudio.Component.VC.Redist.14.Latest | C++ 2019 Redistributable 更新 | 必需 |
Microsoft.VisualStudio.ComponentGroup.ArchitectureTools.Native | 適用于 C++ 的體系結(jié)構(gòu)工具 | 必需 |
Microsoft.VisualStudio.ComponentGroup.NativeDesktop.Core | C++ 核心桌面功能 | 必需 |
Component.Microsoft.VisualStudio.LiveShare | Live Share | 建議 |
Microsoft.VisualStudio.Component.Debugger.JustInTime | 實(shí)時(shí)調(diào)試器 | 建議 |
Microsoft.VisualStudio.Component.Graphics.Tools | 適用于 DirectX 的圖形調(diào)試器和 GPU 探查器 | 建議 |
Microsoft.VisualStudio.Component.IntelliCode | IntelliCode | 建議 |
Microsoft.VisualStudio.Component.IntelliTrace.FrontEnd | IntelliTrace | 建議 |
Microsoft.VisualStudio.Component.JavaScript.TypeScript | JavaScript 和 TypeScript 語(yǔ)言支持 | 建議 |
Microsoft.VisualStudio.Component.NuGet | NuGet 程序包管理器 | 建議 |
Microsoft.VisualStudio.Component.Roslyn.LanguageServices | C# 和 Visual Basic | 建議 |
Microsoft.VisualStudio.Component.TypeScript.4.3 | TypeScript 4.3 SDK | 建議 |
Microsoft.VisualStudio.Component.VC.ASAN | C++ AddressSanitizer | 建議 |
Microsoft.VisualStudio.Component.VC.ATL | 適用于最新 v142 生成工具的 C++ ATL (x86 & x64) | 建議 |
Microsoft.VisualStudio.Component.VC.CMake.Project | 用于 Windows 的 C++ CMake 工具 | 建議 |
Microsoft.VisualStudio.Component.VC.DiagnosticTools | C++ 分析工具 | 建議 |
Microsoft.VisualStudio.Component.VC.TestAdapterForBoostTest | Boost.Test 測(cè)試適配器 | 建議 |
Microsoft.VisualStudio.Component.VC.TestAdapterForGoogleTest | Google Test 測(cè)試適配器 | 建議 |
Microsoft.VisualStudio.Component.VC.Tools.x86.x64 | MSVC v142 - VS 2019 C++ x64/x86 生成工具(最新版本) | 建議 |
Microsoft.VisualStudio.Component.Windows10SDK.19041 | Windows 10 SDK (10.0.19041.0) | 建議 |
Microsoft.VisualStudio.ComponentGroup.WebToolsExtensions | ASP.NET 和 Web 開(kāi)發(fā) | 建議 |
Microsoft.VisualStudio.ComponentGroup.WebToolsExtensions.CMake | JSON 編輯器 | 建議 |
Component.Incredibuild | Incredibuild - 生成加速 | 可選 |
Component.IncredibuildMenu | IncrediBuildMenu | 可選 |
Microsoft.Component.VC.Runtime.UCRTSDK | Windows 通用 CRT SDK | 可選 |
Microsoft.Net.Component.4.6.1.TargetingPack | .NET Framework 4.6.1 目標(biāo)包 | 可選 |
Microsoft.Net.Component.4.8.SDK | .NET Framework 4.8 SDK | 可選 |
Microsoft.VisualStudio.Component.JavaScript.Diagnostics | JavaScript 診斷 | 可選 |
Microsoft.VisualStudio.Component.VC.140 | MSVC v140 - VS 2015 C++ 生成工具 (v14.00) | 可選 |
Microsoft.VisualStudio.Component.VC.ATLMFC | 適用于最新 v142 生成工具的 C++ MFC(x86 和 x64) | 可選 |
Microsoft.VisualStudio.Component.VC.CLI.Support | 適用于 v142 生成工具的 C++/CLI 支持(最新版本) | 可選 |
Microsoft.VisualStudio.Component.VC.Llvm.Clang | 適用于 Windows 的 C++ Clang 編譯器 (12.0.0) | 可選 |
Microsoft.VisualStudio.Component.VC.Llvm.ClangToolset | v142 生成工具的 C++ Clang-cl (x64/x86) | 可選 |
Microsoft.VisualStudio.Component.VC.Modules.x86.x64 | C++ Modules for v142 生成工具(x64/x86 - 試驗(yàn)) | 可選 |
Microsoft.VisualStudio.Component.VC.Tools.ARM64 | MSVC v142 - VS 2019 C++ ARM64 生成工具(最新版本) | 可選 |
Microsoft.VisualStudio.Component.VC.v141.x86.x64 | MSVC v141 - VS 2017 C++ x64/x86 生成工具 (v14.16) | 可選 |
Microsoft.VisualStudio.Component.Windows10SDK.16299 | Windows 10 SDK (10.0.16299.0) | 可選 |
Microsoft.VisualStudio.Component.Windows10SDK.17134 | Windows 10 SDK (10.0.17134.0) | 可選 |
Microsoft.VisualStudio.Component.Windows10SDK.17763 | Windows 10 SDK (10.0.17763.0) | 可選 |
Microsoft.VisualStudio.Component.Windows10SDK.18362 | Windows 10 SDK (10.0.18362.0) | 可選 |
Microsoft.VisualStudio.ComponentGroup.NativeDesktop.Llvm.Clang | 適用于 Windows 的 C++ Clang 工具 (12.0.0 - x64/x86) | 可選 |
該文章會(huì)更新,歡迎大家批評(píng)指正。文章來(lái)源:http://www.zghlxwxcb.cn/news/detail-471844.html
推薦一個(gè)零聲學(xué)院免費(fèi)公開(kāi)課程,個(gè)人覺(jué)得老師講得不錯(cuò),
分享給大家:[Linux,Nginx,ZeroMQ,MySQL,Redis,
fastdfs,MongoDB,ZK,流媒體,CDN,P2P,K8S,Docker,
TCP/IP,協(xié)程,DPDK等技術(shù)內(nèi)容,點(diǎn)擊立即學(xué)習(xí):
服務(wù)器課程:C++服務(wù)器文章來(lái)源地址http://www.zghlxwxcb.cn/news/detail-471844.html
到了這里,關(guān)于沒(méi)有網(wǎng)絡(luò),怎么安裝VS2019呢?的文章就介紹完了。如果您還想了解更多內(nèi)容,請(qǐng)?jiān)谟疑辖撬阉鱐OY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持TOY模板網(wǎng)!