MSBuild Tools offline

如何制作自己的离线包

https://stackoverflow.com/questions/46684230/visualstudio-build-tools-2017-offline-installer

https://developercommunity.visualstudio.com/content/problem/39981/can-not-install-offline-unable-to-download-install-1.html#reply-54883

https://developercommunity.visualstudio.com/content/problem/137779/the-getreferencenearesttargetframeworktask-task-wa.html

https://docs.microsoft.com/en-us/visualstudio/install/workload-and-component-ids?view=vs-2019

All steps to install build tools:

  1. Download build tools
  2. 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
  3. Copy c:\BT2017offline to box on which you want to install it.
  4. Open mmc and import all certificates from c:\BT2017offline\certificates to "Trusted Root Certification Authorities" of computer (not current user)
  5. Run (exe file will have some version numbers in name): c:\BT2017offline\vs_BuildTools.exe --noweb
  6. Continue clicking next ...
 那么问题来了这些 
--add Microsoft.VisualStudio.Workload.MSBuildTools
参数去哪里找?    仔细阅读 !!!!!!!!!!!
对没错就是这个链接
 
 
还有一个证书问题
第一次在线装完后 得导出证书 不然。。下次安装 离线包没证书可能你会疯掉。
 
如果遇到问题
建议看看

非附属组件

这些是不包含在任何工作负载中的组件,但可以选择作为单独的组件。

 

 

猜你喜欢

转载自www.cnblogs.com/marklove/p/11962102.html