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

VisualStudioWorkspace.GetHierarchy returns a "bad" reference. #323

Open
kfertitta opened this issue Apr 9, 2019 · 0 comments
Open

VisualStudioWorkspace.GetHierarchy returns a "bad" reference. #323

kfertitta opened this issue Apr 9, 2019 · 0 comments

Comments

@kfertitta
Copy link

kfertitta commented Apr 9, 2019

For (at least) .NET Core projects, the IVsHierarchy returned from VisualStudioWorkspace.GetHierarchy is not the same as that retrieved using the classic shell interfaces -- specifically, by calling IVsSolution.GetProjectOfUniqueName. Comparing the two RCW instances (after properly normalizing them by calling QI for IUnknown on each), shows they are not the same.

The IVsHierarchy retrieved from the workspace does not work in at least some scenarios. In particular, calling IVsSolution.GetGuidOfProject fails with E_FAIL.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant