-
Notifications
You must be signed in to change notification settings - Fork 585
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
Fix inconsistent naming of MSBuild package, add setParams to run* methods #1837
Conversation
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.
Looks good to me. I always wondered about the correct casing...
Thanks for taking care of this! The only thing missing is to fix the CI. Let me know if things break apart.
build.fsx
Outdated
@@ -349,7 +349,7 @@ Target.create "UnskipAndRevertAssemblyInfo" (fun _ -> | |||
) | |||
|
|||
Target.create "BuildSolution_" (fun _ -> | |||
MsBuild.runWithDefaults "Build" ["./src/Legacy-FAKE.sln"; "./src/Legacy-FAKE.Deploy.Web.sln"] | |||
MSBuild.runWithDefaults "Build" ["./src/Legacy-FAKE.sln"; "./src/Legacy-FAKE.Deploy.Web.sln"] |
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.
To fix the build-script you need to nest this change into a #if BOOTSTRAP
block
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.
The #if BOOTSTRAP
trick didn't work when building on my laptop as it expected MsBuild
instead of MSBuild
.
However Travis and AppVeyor builds both needed MSBuild
as I expected, the cause is probably some stale artifacts on my laptop.
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.
Correct. Artefacts will be added to your .nuget folder (in your users directory). Maybe our build script needs to clean them...
Thanks! |
Naming of MSBuild within module was inconsitent between
MsBuild
andMSBuild
, since official naming isMSBuild
I've renamed everything so it's consistent with official name.Also added the setParams MSBuild.build function to the MSBuild.run* functions where applicable, so it's constent with other Fake 5 api's.
In Fake 4 this wasn't necessary because you could edit the mutable
MSBuildDefaults
property.Also currently we have the following code in the MSBuild module:
Can this safely be removed? As we have now the BuildServer.* packages
The same applies to the following in MSBuildLogger:
Finally is the
NO_MSBUILD_AVAILABLE
directive still necessary?This directive is only used in Xamarin + MSBuild packages