-
-
Notifications
You must be signed in to change notification settings - Fork 21.3k
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
.NET: Change NETCore.App version detection to use highest match #64922
.NET: Change NETCore.App version detection to use highest match #64922
Conversation
`libnethost.a` detection failed on my Linux system (Mageia 9, using Fedora 36 dotnet repos), because it used the first match which isn't the one matching the rest of the SDK: ``` $ dotnet --list-runtimes Microsoft.AspNetCore.App 3.1.28 [/usr/share/dotnet/shared/Microsoft.AspNetCore.App] Microsoft.AspNetCore.App 6.0.8 [/usr/share/dotnet/shared/Microsoft.AspNetCore.App] Microsoft.NETCore.App 3.1.28 [/usr/share/dotnet/shared/Microsoft.NETCore.App] Microsoft.NETCore.App 6.0.5 [/usr/share/dotnet/shared/Microsoft.NETCore.App] Microsoft.NETCore.App 6.0.8 [/usr/share/dotnet/shared/Microsoft.NETCore.App] ``` No idea why I still have 6.0.5 installed but it should pick the highest I guess.
Turns out it's because I had an empty folder for
I'm using Microsoft's own Fedora packages from packages.microsoft.com so it means they are not / were not properly packaging this as RPM didn't know who owns the If a Microsoft packager passes by, please make sure the relevant package owns its versioned folder with the
If the folder isn't listed, it won't be removed, and since Now to be fair, I just updated my Now, this PR might also fix #64765. Could you test @derammo @mrbbbaixue? Seems like the Windows packaging had similar issues of not cleaning up its folders. |
I will test tomorrow (Saturday) on Windows 10, using Visual Studio 2022. |
Works on Windows 11, Visual Studio 2022 17.3.1. |
With the 6.0.5 folders still present, just to confirm? |
Here on my computer is 6.0.7 and 6.0.8, it find 6.0.8 and builds successfully. |
Here's my test report (blocked by the build being broken)
Looks like someone broke the Visual Studio detection in manual (VCINSTALLDIR) mode?
|
ok trying again with the patch for #64921 (just FYI so nobody wastes time explaining to me why it broke :) ) |
|
|
oh boy... I just verified the patch and I didn't actually have the this PR applied at the last run, sorry for wasting your time. So let me go test again :) confirmed fixed with this PR and 64921
|
libnethost.a
detection failed on my Linux system (Mageia 9, using Fedora 36dotnet repos), because it used the first match which isn't the one matching
the rest of the SDK:
No idea why I still have 6.0.5 installed but it should pick the highest I guess.
May fix #64765.