为什么 Visual Studio Build Tools 安装程序会立即 return 而没有安装任何东西?
Why does the Visual Studio Build Tools installer return immediately without installing anything?
我正在尝试按照 installing Visual Studio Build Tools in a container 的示例进行操作。我试图弄清楚为什么安装没有像我预期的那样工作。我什至无法用我想要的组件启动 "built" 的容器;它无法 运行,说 The system cannot find the path specified.
。我想自己启动基本映像和 运行 安装程序,这样我就可以看到发生了什么。这是我的开头:
FROM mcr.microsoft.com/dotnet/framework/sdk:4.8
ADD https://aka.ms/vs/16/release/vs_buildtools.exe C:\TEMP\vs_buildtools.exe
然后我尝试手动 运行ning 示例中的命令:
C:\TEMP\vs_buildtools.exe --quiet --wait --norestart --nocache --installPath C:\BuildTools --add Microsoft.VisualStudio.Workload.VCTools
此命令returns 立即不执行任何操作。怎么回事?
这是一个 window 应用程序,因此请立即控制 returns。这就是为什么我们在 https://docs.microsoft.com/en-us/visualstudio/install/build-tools-container?view=vs-2019 的示例指令使用 "start /wait"(批处理)。如果这些说明对您不起作用,请告诉我。
我正在尝试按照 installing Visual Studio Build Tools in a container 的示例进行操作。我试图弄清楚为什么安装没有像我预期的那样工作。我什至无法用我想要的组件启动 "built" 的容器;它无法 运行,说 The system cannot find the path specified.
。我想自己启动基本映像和 运行 安装程序,这样我就可以看到发生了什么。这是我的开头:
FROM mcr.microsoft.com/dotnet/framework/sdk:4.8
ADD https://aka.ms/vs/16/release/vs_buildtools.exe C:\TEMP\vs_buildtools.exe
然后我尝试手动 运行ning 示例中的命令:
C:\TEMP\vs_buildtools.exe --quiet --wait --norestart --nocache --installPath C:\BuildTools --add Microsoft.VisualStudio.Workload.VCTools
此命令returns 立即不执行任何操作。怎么回事?
这是一个 window 应用程序,因此请立即控制 returns。这就是为什么我们在 https://docs.microsoft.com/en-us/visualstudio/install/build-tools-container?view=vs-2019 的示例指令使用 "start /wait"(批处理)。如果这些说明对您不起作用,请告诉我。