VCINSTALLDIR not exported
See original GitHub issueI am currently trying to get windeployqt.exe from the Qt framework working properly so that it copies the Visual Studio vc_redist files. The problem occurs on our CI setup, but not when executed locally.
After enabling verbose output there, I noticed the message Warning: Cannot find Visual Studio installation directory, VCINSTALLDIR is not set.
, and after searching about it I think this is the reason why it is not working.
Looking at https://github.com/ilammy/msvc-dev-cmd/blob/master/index.js#L14 I see that VCINSTALLDIR is not included in InterestingVariables and thus not exported. Would it be ok to include VCINSTALLDIR there?
Let me know if I should just create a pull request for that.
Issue Analytics
- State:
- Created 3 years ago
- Comments:7 (7 by maintainers)
Top Results From Across the Web
how to fix `VS VCINSTALLDIR not set, not running in ... - GitHub
how to fix VS VCINSTALLDIR not set, not running in VS Command Prompt using vs2022 ,help me please. #2552. Open. heartacker opened this ......
Read more >DLL functions not exported when build in release configuration
In my C++ DLL project, when I build the project in Debug configuration, it works perfectly. Functions are exported using a .def file:...
Read more >warning MSB8003: Could not find VCToolsInstallDir variable ...
There is a method to export configuration file: Open Visual Studio Installer. Choose "More- ->Export configuration". Save configuration file. Looking forward to ...
Read more >Cannot find Windows Build Tools - CircleCI Discuss
export VCINSTALLDIR ="C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\\"; npm config set msvs_version=2019 --global; npm config set ...
Read more >Write unit tests for C++ DLLs in Visual Studio - Microsoft Learn
The unit tests call non-member functions that aren't exported from the DLL, and the DLL can be built as a static library: Change...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Alrighty. This has been properly published as
msvc-dev-cmd@v1.5.0
andmsvc-dev-cmd@v1
.Ok it worked perfectly in https://github.com/simulationcraft/simc-publish/actions/runs/415844010 windeployqt.exe seems to have picked up VCINSTALLDIR, and our finished bundle now contains the vc_redist.x64/x86.exe so that those pesky users lacking it can install it, and we officially distribute all required files 👍
Thanks for your support and quick responses.