首先要下載VS安裝器,有社區(qū)版/專業(yè)版/企業(yè)版,此處以社區(qū)版為例。不同版本的VS,只需要將cmd命令中exe名稱換掉就行了。
僅C#
VisualStudioSetup.exe --layout D:\Layout --add Microsoft.VisualStudio.Workload.ManagedDesktop --includeOptional --lang zh-CN --lang en-US
D:\Layout
是下載的保存目錄
僅C++
VisualStudioSetup.exe --layout D:\Layout --add Microsoft.VisualStudio.Workload.NativeDesktop --includeRecommended --lang zh-CN --lang en-US
C#,C++
命令如下
VisualStudioSetup.exe --layout D:\Layout --add Microsoft.VisualStudio.Workload.ManagedDesktop --add Microsoft.VisualStudio.Workload.CoreEditor --add Microsoft.VisualStudio.Workload.NativeDesktop --includeRecommended --lang zh-CN --lang en-US
?
更多個性化
可以模仿上述的命令行,自己DIY。要DIY就必須要知道你要下載的包的名稱,包的名稱見workload-component-id-vs-community。文章來源:http://www.zghlxwxcb.cn/news/detail-570872.html
更多幫助可進微軟官網搜索Use command-line parameters to install, update, and manage Visual Studio
文章來源地址http://www.zghlxwxcb.cn/news/detail-570872.html
測試平臺
- VS2017,VS2019, VS2022
到了這里,關于從微軟官網下載VisualStudio離線包的文章就介紹完了。如果您還想了解更多內容,請在右上角搜索TOY模板網以前的文章或繼續(xù)瀏覽下面的相關文章,希望大家以后多多支持TOY模板網!