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?
Deleting the Visual Studio Installer files and then rerunning the bootstrapper solves some update failures. Performing the following actions reinstalls the Visual Studio Installer files and resets the installation metadata. Close the Visual Studio Installer. Delete the Visual Studio Installer installation directory.
Disable updating of all extensions in Tools | Options | Environment | Extensions and Updates. Uninstall Visual Assist. Exit Visual Studio. Run the .exe installer of a version of Visual Assist you are qualified to run.
Go to Windows Update to check if there are any pending Windows Updates, check for updates to apply the latest Windows updates, ensure that all critical and recommended Windows Updates are installed and completed, then reboot system. 6.
If you installed to the default location, you can paste: C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Auxiliary\Build\vcvarsall.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With