安装程序会立即返回而不安装任何东西

安装程序会立即返回而不安装任何东西

本文介绍了为什么 Visual Studio Build Tools 安装程序会立即返回而不安装任何东西?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试按照 安装 Visual Studio 的示例进行操作在容器中构建工具.我试图弄清楚为什么安装没有像我预期的那样工作.我什至无法启动用我认为我想要的组件构建"的容器;运行失败,提示系统找不到指定的路径.我想启动基本映像并自己运行安装程序,这样我就可以看到发生了什么.这是我的开始:

I'm trying to follow the example for installing Visual Studio Build Tools in a container. 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.. 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?

推荐答案

它是一个窗口应用程序,所以控制立即返回.这就是我们在 https 上的示例说明的原因://docs.microsoft.com/en-us/visualstudio/install/build-tools-container?view=vs-2019 使用start/wait"(批处理).如果这些说明对您不起作用,请告诉我.

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). Please let me know if those instructions don't work for you.

这篇关于为什么 Visual Studio Build Tools 安装程序会立即返回而不安装任何东西?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-22 16:09