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

create visualstudio2017-workload-manageddesktopbuildtools #43

Closed
jberezanski opened this issue May 30, 2018 · 3 comments
Closed

create visualstudio2017-workload-manageddesktopbuildtools #43

jberezanski opened this issue May 30, 2018 · 3 comments

Comments

@jberezanski
Copy link
Owner

No description provided.

@pstephenson02
Copy link

pstephenson02 commented Jun 5, 2018

Hi @jberezanski

I have a Dockerfile that currently installs some of the vsbuildtools:

RUN choco install visualstudio2017buildtools -y
RUN choco install visualstudio2017-workload-webbuildtools -y
RUN choco install visualstudio2017-workload-netcorebuildtools -y

However, I also need the Microsoft.VisualStudio.Component.FSharp.MSBuild component in the Microsoft.VisualStudio.Workload.ManagedDesktopBuildTools workload. I tried modifying my script by adding:

RUN choco install visualstudio2017buildtools --package-parameters "--add Microsoft.VisualStudio.Component.FSharp.MSBuild" -y

But the build fails as it's unable to find the componenet:

Failures
 - Microsoft.VisualStudio.Component.FSharp.MSBuild - Microsoft.VisualStudio.Component.FSharp.MSBuild not installed. The package was not found with the source(s) listed.

Since this workload does not exist yet (hence this Github issue), is there any way that I can work around this until this issue is complete? I'm working inside of a Docker container with Windows Server Core so I cannot open the visual studio installer and add workloads that way. Is there a programmatic way to do this?

Thanks in advance.

@jberezanski
Copy link
Owner Author

Oh, @pstephenson02, somehow I completely missed your comment.

The syntax

choco install visualstudio2017buildtools --package-parameters "--add Microsoft.VisualStudio.Component.FSharp.MSBuild" -y

is correct and should work in cmd/powershell. The fact that it fails in a dockerfile suggests a quoting issue - it looks like docker strips the quotes from the command, so choco thinks that Microsoft.VisualStudio.Component.FSharp.MSBuild is the name of another package to install, not a continuation of the value of --package-parameters.

The workload package is available now, so you can just use it and avoid the issue. You can also try to determine how to escape the quotes properly in the dockerfile, which may come in handy if you need to pass additional parameters to the packages in the future.

@pstephenson02
Copy link

Thanks @jberezanski!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants