-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
[Bug]: SDK resolving (MSBuildLocator) on Mac with packages installed by Homebrew #9038
Comments
Hey, @YuliiaKovalova , @ladipro , based on the net core document https://learn.microsoft.com/en-us/dotnet/core/tutorials/netcore-hosting, the code should call get_hostfxr_path in nethost library to get the path of hostfxr dll, and then understand where to load hostfxr. It looks like the current msbuildLocator has never use nethost, so it really depends on some earlier code path loads it into the memory to work. It might be not the case under certain conditions, and basically, the current implementation has always had a gap here. and nethost.dll is in any of the NET Core runtime folder, so I assume it is in the searching path and I assume it can be loaded/bound correctly, so if we change the code to do that to resolve where to load hostfxr, it sounds to me the problem can be fixed. @YuliiaKovalova :, can we get this quickly resolved to address various SDK resolving issue on Mac platform? |
Primary sequence of dotnet_path resolution for apphost apps, look for install locations via |
The fix has been published |
Issue Description
Related to microsoft/vscode-dotnettools#194
Prerequisites
Mac OS with Homebrew installed.
Steps To Reproduce
Install the C# Dev Kit
Open a folder with a .csproj file in it.
View error
Expected Behavior
SDK is found.
Actual Behavior
SDK is not found
Analysis
No response
Versions & Configurations
No response
The text was updated successfully, but these errors were encountered: