Comments (6)
It seems that it should be "ENTRYPOINT C:\BuildTools\Common7\Tools\VsDevCmd.bat" which you can try by setting --entrypoint C:\BuildTools\Common7\Tools\VsDevCmd.bat
on the docker-run commandline
Edit: This actually doesn't work.
from vs-dockerfiles.
It's --installPath
that's not working. It installs it to the default path regardless (C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\Common7\Tools\VsDevCmd.bat
).
Also the VsDevCmd.bat
doesn't work:
**********************************************************************
** Visual Studio 2019 Developer Command Prompt vError 0x57: Unknown parameter: path
** Copyright (c) 2020 Microsoft Corporation
**********************************************************************
from vs-dockerfiles.
Replace
vs-dockerfiles/native-desktop/Dockerfile
Line 33 in f632994
ENTRYPOINT ["C:\BuildTools\Common7\Tools\VsDevCmd.bat", "&&", "powershell.exe", "-NoLogo", "-ExecutionPolicy", "Bypass"]
from vs-dockerfiles.
For me it worked to delete the last line containing the CMD ["powershell.exe"...] command. After that I'm able to build projects with the provided example command.
from vs-dockerfiles.
the ENTRYPOINT
is expected for passing build command directly from VS. See: https://devblogs.microsoft.com/cppblog/using-msvc-in-a-docker-container-for-your-c-projects/#trying-it-all-out
from vs-dockerfiles.
It's
--installPath
that's not working. It installs it to the default path regardless (C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\Common7\Tools\VsDevCmd.bat
).Also the
VsDevCmd.bat
doesn't work:********************************************************************** ** Visual Studio 2019 Developer Command Prompt vError 0x57: Unknown parameter: path ** Copyright (c) 2020 Microsoft Corporation **********************************************************************
The reason it seems to not work might be the lack of a backtick at the end of the line. Have you tried inserting one? It works for me here.
The code is:
RUN C:\TEMP\Install.cmd C:\TEMP\vs_buildtools.exe --quiet --wait --norestart --nocache `
--channelUri C:\TEMP\VisualStudio.chman `
--installChannelUri C:\TEMP\VisualStudio.chman `
--add Microsoft.VisualStudio.Workload.VCTools --includeRecommended`
--installPath C:\BuildTools
And it should be:
RUN C:\TEMP\Install.cmd C:\TEMP\vs_buildtools.exe --quiet --wait --norestart --nocache `
--channelUri C:\TEMP\VisualStudio.chman `
--installChannelUri C:\TEMP\VisualStudio.chman `
--add Microsoft.VisualStudio.Workload.VCTools --includeRecommended `
--installPath C:\BuildTools
from vs-dockerfiles.
Related Issues (14)
- Does not work with Visual Studio 2019 HOT 2
- Cannot Build my Image HOT 1
- Request for a vc Dockerfile that works with CMake and MSbuild
- Request updating for Visual c++ 2019 HOT 3
- No possibility to install previous vc versions on windowsservercore-ltsc2022 containers
- Why Node-js? HOT 1
- This repo is missing important files HOT 3
- Make easier for project to consume
- Using Static Links for All Resources HOT 6
- Out of the box docker creation is not working HOT 5
- Unable to reliably build containers HOT 7
- Missing something silly.. v15.0 vs v15.9.11 HOT 1
- Why can't I debug this interactively? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vs-dockerfiles.