-
Notifications
You must be signed in to change notification settings - Fork 83
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
MSBuildLocator.QueryVisualStudioInstances Fails on Mac and Linux from Version 1.5.3 #210
Comments
Could you provide repro for this issue? We apologize for the late response. |
The issue is fixed. Pending release. |
Hi @YuliiaKovalova , is the fix released? |
Hi @iketw , Yes, the fix is the part of https://www.nuget.org/packages/Microsoft.Build.Locator/1.6.1. |
Starting from version 1.5.3, the MSBuildLocator.QueryVisualStudioInstances method fails to execute in Mac and Linux environments. The error message is as follows:
It's worth noting that the QueryInstancesTests.DefaultInstanceTest unit test fails with the same issue on my mac.
The underlying cause of this issue is the
DllImport("hostfxr"...)
fails. It cannot find the hostfxr library without additional information about its location. There are similar issues previously reported on dotnet previews, such as dotnet/runtime#54965. The dotnet team resolved these issues by:I am unsure if there is a straightforward way to leverage this existing fix, however, reimplementing the second part isn't difficult and would at least provides users with a workaround by specifying the HOSTFXR_PATH variable. A draft PR with a potential implementation can be found here: #209. (note, I don't think this a full solution)
The text was updated successfully, but these errors were encountered: