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

Yet another SdkAssemblyResolver fix #2835

Merged

Conversation

Thorium
Copy link
Member

@Thorium Thorium commented Sep 26, 2024

After this PR you can build Fake with a computer that has .NET 9 RC installed, without any global.json hacks:
Global.json is for the product itself, not for FAKE, so having to fix it to .NET 6 is bad idea.

SDKAssemblyResolver tries to match the SDK versions (dotnet --version) to runtime versions (dotnet --list-runtimes).
There is no product release for .NET9, so the search of runtime of SDK 9.0.100-rc.1.24452.12 never matched.

After this PR, it will say, ok SDK 9.0.100-rc.1.24452.12 not found, let's see what you have in your computer... And then respecting the FAKE_SDK_RESOLVER_CUSTOM_DOTNET_VERSION build with latest found runtime (they are in descending release-order by default). So by default FAKE 6 will build on .NET6 which should be totally fine because FAKE is just a wrapper over other tools like dotnet.exe, so hopefully it can still build .NET8 (and 9) software if you just have the latest dotnet.exe.

…ll the versions: they'll be filtered later with exist.
@xperiandri xperiandri merged commit 04c2b47 into fsprojects:master Sep 26, 2024
3 checks passed
@Thorium Thorium mentioned this pull request Sep 26, 2024
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