Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Why can't I debug this interactively? #9

Closed
thejohnfreeman opened this issue Jul 6, 2019 · 1 comment

Comments

Projects
None yet
2 participants
@thejohnfreeman
Copy link

commented Jul 6, 2019

I'm a Linux developer trying to set up a Windows container for building cross-platform C++. I have very little experience with Visual Studio, cmd, or PowerShell, but enough experience with Docker.

I've tried tailoring the installation command to select exactly the components I want, but it's not working. I can't even run the "built" image to debug; it fails to run, saying The system cannot find the path specified. I'm trying to build another image with everything but the installation command, so that I can launch it, run the command manually, and debug it. But not even that works! When I manually execute vs_buildtools.exe in a container, it returns immediately without doing anything. What is going on? I've tried a number of different Dockerfiles, but here is one:

FROM mcr.microsoft.com/dotnet/framework/sdk:4.8
ADD https://aka.ms/vs/16/release/vs_buildtools.exe C:\TEMP\vs_buildtools.exe
> docker build . -m 2GB -t sandbox
> docker run --rm -it sandbox
> C:\TEMP\vs_buildtools.exe --quiet --wait --norestart --nocache --installPath VisualStudio --add 'Microsoft.VisualStudio.Workload.VCTools;includeRecommended'

I've tried with and without the --channelUri options. I've tried with and without install.cmd as given in the advanced instructions. I've tried with and without the "shell reset". None of it makes a difference.

@heaths heaths closed this Jul 8, 2019

@heaths heaths added the question label Jul 8, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.