Skip to content

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
@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