简体   繁体   English

为什么Visual Studio Build Tools安装程序会立即返回而不安装任何内容?

[英]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.

相关问题 Visual Studio 2017构建工具不在Windows Server 2012上安装 - Visual Studio 2017 build tools not installing on windows server 2012 vcpkg 在哪里查找 Visual Studio 构建工具安装? - Where does vcpkg looks for Visual Studio Build tools installation? 为什么 Bazel 找不到 Visual C++ 构建工具? - Why Bazel does not find Visual C++ Build Tools? 如何在无人值守的情况下安装 Visual Studio 构建工具? - How to install Visual Studio Build Tools unattended? Visual Studio 2017 C#安装程序项目未安装我的应用程序 - Visual Studio 2017 C# installer project is not installing my app 为什么我无法使用Visual Studio 2015 RC命令行工具构建Vim? - Why am I not able to build Vim with Visual Studio 2015 RC command line tools? 为什么我使用Visual Studio工具在Windows上构建OpenSSL的尝试失败? - Why is my attempt to build OpenSSL on Windows using Visual Studio tools failing? Windows Installer本身实际上做了什么,为什么我没有看到没有第三方工具的msi? - What does Windows Installer itself actually do and why do I never see an msi made without third party tools? Visual Studio 2017 安装程序在任务栏中打开但不显示 - Visual studio 2017 installer opens in taskbar but does not show 为什么套接字中的 recv() 函数不返回任何内容? - Why recv() function in sockets does not return anything?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM