赞
踩
vs_community.exe [command] <optional parameters>...
命令参考因为现在VS全部安装太大,几十个G不止,我们根据自己需要选择需要的工作负荷即可
vs_community.exe --layout d:\vs2019 --includeRecommended --add Microsoft.VisualStudio.Workload.ManagedDesktop --add Microsoft.VisualStudio.Workload.NativeDesktop --add Microsoft.VisualStudio.Component.VC.ATLMFC --add Microsoft.VisualStudio.Component.Unity --lang En-us
下面说明一下工作负荷的内容,VS2019支持的所有工作负荷参考这里
打开上面网址会发现一堆表格如下所示,我们以.NET desktop development
为例
.NET desktop development
ID: Microsoft.VisualStudio.Workload.ManagedDesktop
Description: Build WPF, Windows Forms, and console applications using C#, Visual Basic, and F# with .NET and .NET Framework.
Components included by this workload
Component ID | Name | Version | Dependency type |
---|---|---|---|
Microsoft.Component.MSBuild | MSBuild | 16.5.29515.121 | Required |
… | … | … | … |
Component.Microsoft.VisualStudio.LiveShare | Live Share | 1.0.4438 | Recommended |
… | … | … | … |
Microsoft.Net.Component.4.7.1.TargetingPack | .NET Framework 4.7.1 targeting pack | 16.10.31205.252 | Optional |
vs_community.exe --layout d:\vs2019 --includeRecommended --includeOptional --add 某工作负荷ID
小伙伴你学废了吗?如果本文对您有帮助,欢迎点赞评论转发收藏哟
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。