下載 VS2019:?Visual Studio 2019 版本 16.11 發(fā)行說明 | Microsoft Learnhttps://learn.microsoft.com/zh-cn/visualstudio/releases/2019/release-notes選擇第一個(gè),下載社區(qū)版?;蛘哌@里下載。
比較簡(jiǎn)單的方式就是直接打開,網(wǎng)絡(luò)安裝。但微軟提供了先下載,后離線的方法,使得我們可以做一個(gè)備份 。
根據(jù)教程,用離線安裝方式,
教程:創(chuàng)建 Visual Studio 的脫機(jī)安裝包以進(jìn)行本地安裝https://learn.microsoft.com/zh-cn/visualstudio/install/create-an-offline-installation-of-visual-studio?view=vs-2022
下載vs2019 社區(qū)版。下載的程序改名?vs_community_2019 ,便于后來輸命令?
以下 用命令行,先下載完畢再脫機(jī)安裝 。
先輸入命令:vs_community_2019 --layout c:\vs_community_2019_setupDir --add Microsoft.VisualStudio.Workload.NativeDesktop --includeRecommended --includeOptional --lang zh-CN
這個(gè)看似命令行,其實(shí)是一個(gè)命令行和GUI結(jié)合的程序。
命令的參數(shù)詳見上面的鏈接。這個(gè)是讓下載的東西保存到?c:\vs_community_2019_setupDir 的保存目錄中去。?出現(xiàn)“下載“”完成“兩個(gè)進(jìn)度條以后 ,就進(jìn)入一個(gè)命令行的界面,如下,有百分比顯示。耐心等待一段時(shí)間 ,等到100%。這個(gè)非常緩慢,而且? 95%-- 100% 的階段非常耗時(shí)。
C:\Users\Administrator\Downloads>dir vs_community_2019.exe
驅(qū)動(dòng)器 C 中的卷是 Windows 10 LTSC
卷的序列號(hào)是 BE20-9C1F
C:\Users\Administrator\Downloads 的目錄
2023/06/03 17:38 3,695,832 vs_community_2019.exe
1 個(gè)文件 3,695,832 字節(jié)
0 個(gè)目錄 204,043,341,824 可用字節(jié)
C:\Users\Administrator\Downloads>vs_community_2019 --layout c:\vs_community_2019_setupDir --add Microsoft.VisualStudio.Workload.NativeDesktop --includeRecommended --includeOptional --lang zh-CN
C:\Users\Administrator\Downloads>Visual Studio Setup Layout Tool, version 3.5.2150.18781
? Microsoft Corporation. All rights reserved.
Download of 'https://aka.ms/vs/16/release/channel' succeeded using engine 'WebClient'
Download of 'https://download.visualstudio.microsoft.com/download/pr/48ee919d-ab7d-45bc-a595-a2262643c3bc/214dc5a5cf36d95e27186ec88d5508c8e77fd38232d1d896a8dfa5246b3dcaaf/VisualStudio.vsman' succeeded using engine 'WebClient'
........
Layout progress: 95.48%
Layout progress: 95.58%
Layout progress: 95.70%
Layout progress: 95.80%
Layout progress: 95.91%
Download of 'https://download.visualstudio.microsoft.com/download/pr/bdbe0b8d-5390-4111-abd8-b6e21e2f1a3c/a49aa662a09a019553fc33d8fefba58b49fda8909eb10078a084918a32c428ed/sfx_x86.cab' succeeded using engine 'WebClient'
Download of 'https://download.visualstudio.microsoft.com/download/pr/33d686db-3937-4a19-bb3c-be031c5d69bf/5c2c887af01f10a5488dd6aa8b5da4dceb68a6895f8fdad41cee1533dc9bf51d/dotnet-21templates-5.0.416-servicing.22580.22-win-x86.msi' succeeded using engine 'WebClient'
Layout progress: 95.95%
已成功完成安裝。
按任意鍵繼續(xù)...
完成以后,這個(gè)程序就自己退出了。以后需要進(jìn)入這個(gè)下載的目錄 。輸入命令行:?
vs_setup --noWeb --add Microsoft.VisualStudio.Workload.NativeDesktop --includeRecommended --includeOptional?
C:\Users\Administrator\Downloads>cd \
C:\>cd vs_community_2019_setupDir
C:\vs_community_2019_setupDir>vs_setup --noWeb --add Microsoft.VisualStudio.Workload.NativeDesktop --includeRecommended --includeOptional
C:\vs_community_2019_setupDir>vs_setup --noWeb --add Microsoft.VisualStudio.Workload.NativeDesktop --includeRecommended
C:\vs_community_2019_setupDir>
里面重要的是? --noweb 參數(shù),這樣就不用去網(wǎng)絡(luò)下載了。然后一路安裝即可。
我把下載的打包了一個(gè)iso文件。下次沒必要下載了,直接使用即可。文章來源:http://www.zghlxwxcb.cn/news/detail-502036.html
看了下。VS2019搭配的是 QT 5.15,直接下載安裝文章來源地址http://www.zghlxwxcb.cn/news/detail-502036.html
到了這里,關(guān)于VS2019社區(qū)版和QT安裝記錄的文章就介紹完了。如果您還想了解更多內(nèi)容,請(qǐng)?jiān)谟疑辖撬阉鱐OY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持TOY模板網(wǎng)!