-
Notifications
You must be signed in to change notification settings - Fork 102
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
VS2017 ERROR: couldn't find the msdia.dll #124
Comments
Thanks for your detailed bug report! However, we are not relying on file locations (see this line), so something else must go wrong... Can you please verify that your VS installation indeed contains the DIA stuff? Search for |
It seems the files are there. For now I've tried repairing the installation and a second install using 2017 preview with a basic c++ workload. |
Thanks! Could you please also search for Explanation: We are using CLSIDs to instantiate the DIA COM objects - they should be made available through the registry. If you do not have any findings, the VS2017 installation has not added them to the registry for some reason. In that case, we will have to investigate the VS2017-only case a bit closer. |
@NinjaCoder Thanks for adding that information! You say that it started on March 14th - does that mean that source locations worked before that date on VS2017 even without having VS2015 installed? @Farwaykorse Can you confirm the problems with debugging tests? |
I do have both keys. Both are located in CLSID folders.
To make it more complex. By the way. The dll does work if I manually copy it to the referenced vs2015 location. Debugging tests didn't ever produce unexpected errors for me. |
@Farwaykorse Thanks for the update - kind of as expected. It looks like VS2017 doesn't register the DIA DLLs publically any more... We'll look into this and figure out a reliable way to locate and instantiate the DIA DLL in case only VS2017 is installed - stay tuned. @NinjaCoder It looks like your debugging problem is not related to this bug - would you mind to open a new issue and copy over your logging stuff? Thanks! |
Maybe this can help: https://github.com/microsoft/vs-setup-samples |
Thanks! Your link might indeed be useful... Until we have figured out a reliable way to instantiate the DIA com object on VS 2017, this registry patch should also provide a workaround without the need to copy dlls around. Change file ending to |
Just confiming this registry patch is a working set (at least for the community edition of VS2017). |
… Remove all the complexity of handling different DIA versions. (#124)
Hi @Farwaykorse, Cheers, |
@jgefele Perfect! I removed the csoltenborn's temporary register patch, before installing. |
@jgefele I can also confirm that that build fixed issues I was having on VS2017 Enterprise. Cheers! |
Test discovery returns:
For each pdb and all tests in them.
On this pc only VS2017 is installed.
My first idea is that the new directory structure might prevent the runner from finding these files.
The test themselves work properly, and return the proper messages. Just without the source links.
Google Test Adapter v0.9.1.653
VS Community 2017 / 15.0.0.0+26228.1
.NET v4.6.01586
The text was updated successfully, but these errors were encountered: