【问题标题】:Unable to execute Visual Studio bootstrapper vs_community.exe in Powershell (admin) and get error "not recognized..."无法在 Powershell(管理员)中执行 Visual Studio 引导程序 vs_community.exe 并出现错误“无法识别...”
【发布时间】:2022-11-10 11:11:14
【问题描述】:

我正在尝试在 PowerShell(管理员)中为 Visual Studio 2022 版本执行 bootstrapper vs_community.exe,以创建本地布局以在另一台计算机上进行离线安装。

我按照微软的指示: https://learn.microsoft.com/en-us/visualstudio/install/create-an-offline-installation-of-visual-studio?view=vs-2022

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


    【解决方案1】:

    确保当前目录中存在 vs_community.exe,然后尝试使用 .s_community.exe 而不是 vs_community.exe。 这对我有用。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2021-03-26
      • 2010-09-09
      • 1970-01-01
      • 2017-02-04
      • 1970-01-01
      • 1970-01-01
      • 2014-08-30
      • 1970-01-01
      相关资源
      最近更新 更多