BlueRoseNote/03-UnrealEngine/Gameplay/Other/离线安装VisualStudio2019专业版.md
2023-06-29 11:55:02 +08:00

32 lines
1.8 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# 官方文档地址
https://docs.microsoft.com/zh-cn/visualstudio/install/create-an-offline-installation-of-visual-studio?view=vs-2019
# 简单说明
VisualStudio2019没有提供安装用的ios镜像文件但官方提供了另一种离线安装方式具体操作参看文档。这里简单说明一下就是需要通过命令行来操作。以下是我的用的案例
```
vs_professional.exe --layout c:\vslayout ^
--add Microsoft.VisualStudio.Workload.NativeDesktop ^
--add Microsoft.VisualStudio.Component.Git ^
--add Microsoft.VisualStudio.Component.ClassDesigner ^
--add Microsoft.Net.Component.4.6.2.TargetingPack ^
--add Microsoft.Net.Component.4.7.1.TargetingPack ^
--add Microsoft.Net.Component.4.7.2.TargetingPack ^
--add Microsoft.Net.Component.4.8.TargetingPack ^
--includeRecommended --lang zh-CN ^
--addProductLang en-US ^
--addProductLang zh-CN
```
--layout代表了展开路径也就是下载安装包的位置。
--add代表添加的功能包。
--addProductLang代表添加的语言包
在cmd中执行完之后c:\vslayout就已经有一个指定功能的安装包了。只需要拷贝再执行安装包中的exe文件即可完成安装。
# 如何获取功能包的名字
这个可以通过导出设置功能来获取。在VisualStudioInstall的可用选项卡中找到想要安装版本社区版、专业版与企业版点击更多——导出配置。选择想要的功能后就可以在之前选择路径的地方找到.vsconfig文件。用记事本打开就可以找到勾选功能包的名字。
有关导出配置的文档:
https://docs.microsoft.com/zh-cn/visualstudio/install/import-export-installation-configurations?view=vs-2019
# 安装的命令行参数示例
https://docs.microsoft.com/zh-cn/visualstudio/install/command-line-parameter-examples?view=vs-2019