[英]Why does the Visual Studio Build Tools installer return immediately without installing anything?
I'm trying to follow the example for installing Visual Studio Build Tools in a container . 我正在尝试遵循在容器中安装Visual Studio Build Tools的示例。 I'm trying to figure out why the installation isn't working like I expect.
我试图弄清楚为什么安装无法按预期工作。 I cannot even start the container that is "built" with the components I think I want;
我什至无法启动使用我想使用的组件“构建”的容器; it fails to run, saying
The system cannot find the path specified.
它无法运行,提示
The system cannot find the path specified.
. 。 I want to start the base image and run the installer myself, so I can see what is going on.
我想启动基本映像并自己运行安装程序,因此我可以看到发生了什么。 Here is what I start with:
这是我的开始:
FROM mcr.microsoft.com/dotnet/framework/sdk:4.8
ADD https://aka.ms/vs/16/release/vs_buildtools.exe C:\TEMP\vs_buildtools.exe
Then I try manually running the command in the example: 然后,我尝试在示例中手动运行命令:
C:\TEMP\vs_buildtools.exe --quiet --wait --norestart --nocache --installPath C:\BuildTools --add Microsoft.VisualStudio.Workload.VCTools
This command returns immediately without doing anything. 该命令将立即返回,而无需执行任何操作。 What is going on?
到底是怎么回事?
It's a window app so control returns immediately. 这是一个窗口应用程序,因此控件会立即返回。 That's why our example instructions at https://docs.microsoft.com/en-us/visualstudio/install/build-tools-container?view=vs-2019 use "start /wait" (batch).
这就是为什么我们在https://docs.microsoft.com/zh-cn/visualstudio/install/build-tools-container?view=vs-2019上的示例说明使用“开始/等待”(批处理)的原因。 Please let me know if those instructions don't work for you.
如果这些说明对您不起作用,请告诉我。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.