【发布时间】:2022-11-10 11:11:14
【问题描述】:
我正在尝试在 PowerShell(管理员)中为 Visual Studio 2022 版本执行 bootstrapper vs_community.exe,以创建本地布局以在另一台计算机上进行离线安装。
vs_community.exe --layout c:\localVSlayout --add Microsoft.VisualStudio.Workload.ManagedDesktop --add Microsoft.VisualStudio.Workload.NetWeb --includeOptional --lang en-US
PowerShell 返回错误:
vs_community.exe : The term 'vs_community.exe' is not recognized as the name of a cmdlet, function, script file, or ope
rable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again
.
At line:1 char:1
+ vs_community.exe --layout c:\localVSlayout --add Microsoft.VisualStud ...
+ ~~~~~~~~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (vs_community.exe:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
如何正确执行 vs_community.exe?
【问题讨论】:
标签: visual-studio powershell visual-studio-2022