From 5a2d280f0cbac85823ba670f4862a2eaba62be31 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Wed, 24 Jun 2026 06:28:29 +0000 Subject: [PATCH] Fix MSBuild condition quoting and DotnetFsiCompilerPath typo - Fix DotnetFsiCompilerPath condition checking wrong variable (DotnetFscCompilerPath instead of DotnetFsiCompilerPath) in Microsoft.FSharp.NetSdk.props - Quote property references in conditions per MSBuild best practices: - Microsoft.FSharp.NetSdk.targets: DisableILLinkSubstitutions, AssemblyName - Microsoft.FSharp.Targets: UsingXBuild boolean comparisons - FSharp.Profiles.props: TolerateUnusedBindings - FSharpBuild.Directory.Build.props: AdditionalFscCmdFlags Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --- FSharp.Profiles.props | 4 ++-- FSharpBuild.Directory.Build.props | 2 +- src/FSharp.Build/Microsoft.FSharp.NetSdk.props | 2 +- src/FSharp.Build/Microsoft.FSharp.NetSdk.targets | 2 +- src/FSharp.Build/Microsoft.FSharp.Targets | 4 ++-- 5 files changed, 7 insertions(+), 7 deletions(-) diff --git a/FSharp.Profiles.props b/FSharp.Profiles.props index aa25fe20055..e2171671a18 100644 --- a/FSharp.Profiles.props +++ b/FSharp.Profiles.props @@ -6,12 +6,12 @@ BUILDING_WITH_LKG;$(DefineConstants) - + 1182;$(WarningsAsErrors) 1182;3879;$(WarnOn) - + 1182;$(WarningsNotAsErrors) 1182;$(NoWarn) diff --git a/FSharpBuild.Directory.Build.props b/FSharpBuild.Directory.Build.props index f9f9128feb6..733d843fefc 100644 --- a/FSharpBuild.Directory.Build.props +++ b/FSharpBuild.Directory.Build.props @@ -30,7 +30,7 @@ 0025;$(WarningsAsErrors) $(OtherFlags) --nowarn:3384 $(OtherFlags) --times --nowarn:75 - $(OtherFlags) $(AdditionalFscCmdFlags) + $(OtherFlags) $(AdditionalFscCmdFlags) diff --git a/src/FSharp.Build/Microsoft.FSharp.NetSdk.props b/src/FSharp.Build/Microsoft.FSharp.NetSdk.props index 5c59b4993e6..396ce4d09a1 100644 --- a/src/FSharp.Build/Microsoft.FSharp.NetSdk.props +++ b/src/FSharp.Build/Microsoft.FSharp.NetSdk.props @@ -76,7 +76,7 @@ WARNING: DO NOT MODIFY this file unless you are knowledgeable about MSBuild and $([System.IO.Path]::GetDirectoryName($(DOTNET_HOST_PATH))) $([System.IO.Path]::GetFileName($(DOTNET_HOST_PATH))) - "$(MSBuildThisFileDirectory)fsi.dll" + "$(MSBuildThisFileDirectory)fsi.dll" diff --git a/src/FSharp.Build/Microsoft.FSharp.NetSdk.targets b/src/FSharp.Build/Microsoft.FSharp.NetSdk.targets index 3761a84fad5..dcaf578891a 100644 --- a/src/FSharp.Build/Microsoft.FSharp.NetSdk.targets +++ b/src/FSharp.Build/Microsoft.FSharp.NetSdk.targets @@ -171,7 +171,7 @@ WARNING: DO NOT MODIFY this file unless you are knowledgeable about MSBuild and - + diff --git a/src/FSharp.Build/Microsoft.FSharp.Targets b/src/FSharp.Build/Microsoft.FSharp.Targets index 8853320e587..2dcd4b9a1cd 100644 --- a/src/FSharp.Build/Microsoft.FSharp.Targets +++ b/src/FSharp.Build/Microsoft.FSharp.Targets @@ -330,10 +330,10 @@ this file. -->