-
Notifications
You must be signed in to change notification settings - Fork 590
[Experiment] Rework the dependencies in fake-cli / Fake.Runtime a little. #2825
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
base: master
Are you sure you want to change the base?
Conversation
9d76694
to
0b68c7d
Compare
@@ -4,20 +4,25 @@ namespace Fake.DotNet | |||
/// .NET Core + CLI tools helpers | |||
/// </summary> | |||
[<RequireQualifiedAccess>] | |||
#if FAKE_INTERNAL_DOTNET_CORE_CLI | |||
module InternalDotNet = |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
5e53e3a
to
6a1e5b2
Compare
Is this something to look at in an update, or leave till the next major version? |
Probably the major update as it changes the public API, right? |
I was trying to avoid changing the public API for Fake.DotNet.Cli, but as long as the functions added to Fake.Runtime are public rather than internal that would be an additive change there |
Description
I'm not sure if this is a sensible thing to try, without knowing the history of it or anything, but -
I was looking at the failure in the .NET 8.0 update PR at https://github.com/fsprojects/FAKE/actions/runs/10942268784/job/30378864009#step:10:12614 and the issue described at #2722 and was wondering - Is there actually a need to package the Microsoft.Build assemblies in the fake-cli nuget package - as in, are they actually used by any of the code in fake-cli or are they just pulled in as part of a dependency chain and not actually used?
So, I tried bending things a bit to include a couple of pieces of Fake.DotNet.Cli inline in Fake.Runtime (just the bits for getting global.json and executing 'dotnet --version' and excluding any dependencies on MSBuild) and the build appears to work.
It's not very pretty due to how the code is layed out in a single module, but here it is in acse the idea is of any interest.