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

ResolveDotNetRoots to support resoving multiple .NET version paths #2832

Merged

Conversation

Thorium
Copy link
Member

@Thorium Thorium commented Sep 24, 2024

There is still an existing issue with ResolveDotNetRoot that it fetches the first .NET version from the computer, which might or might not be the intended version to be used. This happens if the folder doesn't have pre-fixed global.json.

This commit adds ResolveDotNetRoots which instead returns array of found version.
Then the SdkAssemblyResolver can work better in a computer where there are multiple .NET versions installed.

Copy link
Collaborator

@xperiandri xperiandri left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would suggest a few changes but up to you

src/app/Fake.Runtime/SdkAssemblyResolver.fs Show resolved Hide resolved
src/app/Fake.Runtime/SdkAssemblyResolver.fs Show resolved Hide resolved
src/app/Fake.Runtime/SdkAssemblyResolver.fs Show resolved Hide resolved
src/app/Fake.Runtime/SdkAssemblyResolver.fs Outdated Show resolved Hide resolved
src/app/Fake.Runtime/SdkAssemblyResolver.fs Outdated Show resolved Hide resolved
@xperiandri xperiandri merged commit f67f06e into fsprojects:master Sep 24, 2024
3 checks passed
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

Successfully merging this pull request may close these issues.

2 participants