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

vcvarsall.bat is missing #360

Closed
dmikushin opened this issue Aug 18, 2022 · 3 comments
Closed

vcvarsall.bat is missing #360

dmikushin opened this issue Aug 18, 2022 · 3 comments
Labels
support Further information is requested

Comments

@dmikushin
Copy link

vcvars64.bat is internally calling vcvarsall.bat to put the visual studio compilers into the command line. With this container it does not work, because vcvarsall.bat is missing:

 "C:\Program Files (x86)\Microsoft Visual Studio\2022\Community\VC\Auxiliary\Build\vcvarsall.bat"' is not recognized as an internal or external command, operable program or batch file.

Could it be that your are manually picking files for the installation, and some got missed out? Thanks.

@gusztavvargadr
Copy link
Owner

gusztavvargadr commented Aug 19, 2022

@dmikushin just to confirm, which box and which provider / version are you using? Can you maybe share your Vagrantfile too to reproduce it easier? Btw I'm using the default installer with standard parameters, you can take a look at them here.

@dmikushin
Copy link
Author

Hi @gusztavvargadr , sorry for the noise I've figured out this error happens when Visual Studio does not include the C++ development module. So on top of your gusztavvargadr/windows-server, in my provisioning I need to add something like this:

vs_community.exe --installPath $vsHome
        --add Microsoft.VisualStudio.Workload.NativeDesktop
        --add Microsoft.VisualStudio.Component.VC.Tools.x86.x64
        --add Microsoft.VisualStudio.Component.Windows10SDK.19041

Thanks a lot for your excellent work! 👍

@gusztavvargadr
Copy link
Owner

@dmikushin sorry for the delayed response.

Glad that you could figure this out. If you have any recommendations on new tooling in the boxes, feel free to open a dedicated issue. For VS, I have some provisioning samples https://github.com/gusztavvargadr/chef using Chef. I currently have boxes for VS on the client versions of Windows (10 and 11), but can add back VS on top of Windows Server if needed.

Thanks!

@gusztavvargadr gusztavvargadr added the support Further information is requested label Jun 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
support Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants