如何制作自己的离线包
https://stackoverflow.com/questions/46684230/visualstudio-build-tools-2017-offline-installer
https://docs.microsoft.com/en-us/visualstudio/install/workload-and-component-ids?view=vs-2019
All steps to install build tools:
- Download build tools
- Download layout files for offline installation:
- Possible workloads are specified here. Following command contains workloads for msbuild and C++ build tools.
- Run (exe file will have some version numbers in name): vs_BuildTools.exe --layout c:\BT2017offline --add Microsoft.VisualStudio.Workload.MSBuildTools --add Microsoft.VisualStudio.Workload.VCTools --add Microsoft.VisualStudio.Workload.WebBuildTools --add Microsoft.VisualStudio.Workload.NetCoreBuildTools --lang en-US
- Copy c:\BT2017offline to box on which you want to install it.
- Open mmc and import all certificates from c:\BT2017offline\certificates to "Trusted Root Certification Authorities" of computer (not current user)
- Run (exe file will have some version numbers in name): c:\BT2017offline\vs_BuildTools.exe --noweb
- Continue clicking next ...
那么问题来了这些
--add Microsoft.VisualStudio.Workload.MSBuildTools
参数去哪里找?
仔细阅读 !!!!!!!!!!!
对没错就是这个链接
还有一个证书问题
第一次在线装完后 得导出证书 不然。。下次安装 离线包没证书可能你会疯掉。
如果遇到问题
建议看看
非附属组件
这些是不包含在任何工作负载中的组件,但可以选择作为单独的组件。