question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

VCINSTALLDIR not exported

See original GitHub issue

I 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:closed
  • Created 3 years ago
  • Comments:7 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
ilammycommented, Dec 13, 2020

Alrighty. This has been properly published as msvc-dev-cmd@v1.5.0 and msvc-dev-cmd@v1.

0reactions
scamillecommented, Dec 11, 2020

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found