From 7e1b266a357f335dedfd28c99ddb891306ec4ef8 Mon Sep 17 00:00:00 2001 From: "Kevin Ransom (msft)" Date: Fri, 26 Apr 2024 10:22:53 -0700 Subject: [PATCH 1/3] Beforecompile (#17057) * corebeforeafter * depends * temp * temp * tweak * tweak * typo --- src/FSharp.Build/Microsoft.FSharp.Targets | 32 +++++++++++--- src/FSharp.Core/FSharp.Core.fsproj | 13 ++++++ .../tests/CompileOrder - BeforeAndAfter.proj | 42 +++++++++++++++++++ tests/fsharp/SDKTests/tests/ToolsTest.targets | 5 ++- 4 files changed, 86 insertions(+), 6 deletions(-) create mode 100644 tests/fsharp/SDKTests/tests/CompileOrder - BeforeAndAfter.proj diff --git a/src/FSharp.Build/Microsoft.FSharp.Targets b/src/FSharp.Build/Microsoft.FSharp.Targets index 3e5e347d12f..26999e6a646 100644 --- a/src/FSharp.Build/Microsoft.FSharp.Targets +++ b/src/FSharp.Build/Microsoft.FSharp.Targets @@ -235,7 +235,7 @@ this file. - + @@ -247,7 +247,7 @@ this file. - + @@ -255,6 +255,27 @@ this file. + + + + <__Sources Remove="@(__Sources)" /> + <__Sources Include="@(Compile->WithMetadataValue('CompileOrder', 'CompileFirst'))" /> + <__Sources Include="@(CompileBefore)" /> + <__Sources Include="@(Compile->WithMetadataValue('CompileOrder', 'CompileBefore'))" /> + <__Sources Include="@(Compile->WithMetadataValue('CompileOrder', ''))" /> + <__Sources Include="@(Compile->WithMetadataValue('CompileOrder', 'CompileAfter'))" /> + <__Sources Include="@(CompileAfter)" /> + <__Sources Include="@(Compile->WithMetadataValue('CompileOrder', 'CompileLast'))" /> + + + + + + + + + + + --simpleresolution $(OtherFlags) @@ -371,7 +393,7 @@ this file. Resources="@(ActualEmbeddedResources)" SkipCompilerExecution="$(SkipCompilerExecution)" SourceLink="$(SourceLink)" - Sources="@(CompileBefore);@(Compile);@(CompileAfter)" + Sources="@(Compile)" SubsystemVersion="$(SubsystemVersion)" Tailcalls="$(Tailcalls)" TargetType="$(OutputType)" @@ -434,7 +456,7 @@ this file. Overwrite="true"/> - + CompileBefore <_FsGeneratedTfmAttributesSource Include="$(TargetFrameworkMonikerAssemblyAttributesPath)" /> diff --git a/src/FSharp.Core/FSharp.Core.fsproj b/src/FSharp.Core/FSharp.Core.fsproj index 0f9fe0fb624..f3e27acaee6 100644 --- a/src/FSharp.Core/FSharp.Core.fsproj +++ b/src/FSharp.Core/FSharp.Core.fsproj @@ -61,12 +61,25 @@ + + + Primitives/prim-types-prelude.fsi Primitives/prim-types-prelude.fs + + + + Primitives/prim-types-prelude.fsi + + + Primitives/prim-types-prelude.fs + + + Primitives/prim-types.fsi diff --git a/tests/fsharp/SDKTests/tests/CompileOrder - BeforeAndAfter.proj b/tests/fsharp/SDKTests/tests/CompileOrder - BeforeAndAfter.proj new file mode 100644 index 00000000000..55134523861 --- /dev/null +++ b/tests/fsharp/SDKTests/tests/CompileOrder - BeforeAndAfter.proj @@ -0,0 +1,42 @@ + + + + + + + + + + true + /Common7/IDE/CommonExtensions/Microsoft/FSharp/Tools/ + fscAnyCpu.exe + _VsInstallRoot_/Common7/IDE/CommonExtensions/Microsoft/FSharp/Tools/ + + One;Two;Three;Four;Five;Six;Seven;Eight;Nine;Ten;Eleven;Twelve;Thirteen;Fourteen + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/tests/fsharp/SDKTests/tests/ToolsTest.targets b/tests/fsharp/SDKTests/tests/ToolsTest.targets index 7a4138e5eed..3e68a5af856 100644 --- a/tests/fsharp/SDKTests/tests/ToolsTest.targets +++ b/tests/fsharp/SDKTests/tests/ToolsTest.targets @@ -4,10 +4,11 @@ - + + @@ -17,6 +18,8 @@ + + From 7906f6c2eae3932c788f852db157f4df4aa07bed Mon Sep 17 00:00:00 2001 From: "dotnet-maestro[bot]" <42748379+dotnet-maestro[bot]@users.noreply.github.com> Date: Mon, 29 Apr 2024 13:22:47 +0200 Subject: [PATCH 2/3] Update dependencies from https://github.com/dotnet/arcade build 20240425.1 (#17094) Microsoft.DotNet.Arcade.Sdk From Version 8.0.0-beta.24204.3 -> To Version 8.0.0-beta.24225.1 Co-authored-by: dotnet-maestro[bot] --- eng/Version.Details.xml | 4 ++-- global.json | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/eng/Version.Details.xml b/eng/Version.Details.xml index 6994b087c4f..13edcc0998e 100644 --- a/eng/Version.Details.xml +++ b/eng/Version.Details.xml @@ -30,9 +30,9 @@ - + https://github.com/dotnet/arcade - 188340e12c0a372b1681ad6a5e72c608021efdba + 67d23f4ba1813b315e7e33c71d18b63475f5c5f8 diff --git a/global.json b/global.json index a312669c66e..dd1d822cc7a 100644 --- a/global.json +++ b/global.json @@ -17,7 +17,7 @@ "perl": "5.38.0.1" }, "msbuild-sdks": { - "Microsoft.DotNet.Arcade.Sdk": "8.0.0-beta.24204.3", + "Microsoft.DotNet.Arcade.Sdk": "8.0.0-beta.24225.1", "Microsoft.DotNet.Helix.Sdk": "8.0.0-beta.23255.2" } } From b08afc5b3d819392bcaa38588b7949245bf29603 Mon Sep 17 00:00:00 2001 From: Vlad Zarytovskii Date: Mon, 29 Apr 2024 14:39:15 +0200 Subject: [PATCH 3/3] Revert "Beforecompile (#17057)" (#17099) This reverts commit 7e1b266a357f335dedfd28c99ddb891306ec4ef8. --- src/FSharp.Build/Microsoft.FSharp.Targets | 32 +++----------- src/FSharp.Core/FSharp.Core.fsproj | 13 ------ .../tests/CompileOrder - BeforeAndAfter.proj | 42 ------------------- tests/fsharp/SDKTests/tests/ToolsTest.targets | 5 +-- 4 files changed, 6 insertions(+), 86 deletions(-) delete mode 100644 tests/fsharp/SDKTests/tests/CompileOrder - BeforeAndAfter.proj diff --git a/src/FSharp.Build/Microsoft.FSharp.Targets b/src/FSharp.Build/Microsoft.FSharp.Targets index 26999e6a646..3e5e347d12f 100644 --- a/src/FSharp.Build/Microsoft.FSharp.Targets +++ b/src/FSharp.Build/Microsoft.FSharp.Targets @@ -235,7 +235,7 @@ this file. - + @@ -247,7 +247,7 @@ this file. - + @@ -255,27 +255,6 @@ this file. - - - - <__Sources Remove="@(__Sources)" /> - <__Sources Include="@(Compile->WithMetadataValue('CompileOrder', 'CompileFirst'))" /> - <__Sources Include="@(CompileBefore)" /> - <__Sources Include="@(Compile->WithMetadataValue('CompileOrder', 'CompileBefore'))" /> - <__Sources Include="@(Compile->WithMetadataValue('CompileOrder', ''))" /> - <__Sources Include="@(Compile->WithMetadataValue('CompileOrder', 'CompileAfter'))" /> - <__Sources Include="@(CompileAfter)" /> - <__Sources Include="@(Compile->WithMetadataValue('CompileOrder', 'CompileLast'))" /> - - - - - - - - - - - --simpleresolution $(OtherFlags) @@ -393,7 +371,7 @@ this file. Resources="@(ActualEmbeddedResources)" SkipCompilerExecution="$(SkipCompilerExecution)" SourceLink="$(SourceLink)" - Sources="@(Compile)" + Sources="@(CompileBefore);@(Compile);@(CompileAfter)" SubsystemVersion="$(SubsystemVersion)" Tailcalls="$(Tailcalls)" TargetType="$(OutputType)" @@ -456,7 +434,7 @@ this file. Overwrite="true"/> - CompileBefore + <_FsGeneratedTfmAttributesSource Include="$(TargetFrameworkMonikerAssemblyAttributesPath)" /> diff --git a/src/FSharp.Core/FSharp.Core.fsproj b/src/FSharp.Core/FSharp.Core.fsproj index f3e27acaee6..0f9fe0fb624 100644 --- a/src/FSharp.Core/FSharp.Core.fsproj +++ b/src/FSharp.Core/FSharp.Core.fsproj @@ -61,25 +61,12 @@ - - - Primitives/prim-types-prelude.fsi Primitives/prim-types-prelude.fs - - - - Primitives/prim-types-prelude.fsi - - - Primitives/prim-types-prelude.fs - - - Primitives/prim-types.fsi diff --git a/tests/fsharp/SDKTests/tests/CompileOrder - BeforeAndAfter.proj b/tests/fsharp/SDKTests/tests/CompileOrder - BeforeAndAfter.proj deleted file mode 100644 index 55134523861..00000000000 --- a/tests/fsharp/SDKTests/tests/CompileOrder - BeforeAndAfter.proj +++ /dev/null @@ -1,42 +0,0 @@ - - - - - - - - - - true - /Common7/IDE/CommonExtensions/Microsoft/FSharp/Tools/ - fscAnyCpu.exe - _VsInstallRoot_/Common7/IDE/CommonExtensions/Microsoft/FSharp/Tools/ - - One;Two;Three;Four;Five;Six;Seven;Eight;Nine;Ten;Eleven;Twelve;Thirteen;Fourteen - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/tests/fsharp/SDKTests/tests/ToolsTest.targets b/tests/fsharp/SDKTests/tests/ToolsTest.targets index 3e68a5af856..7a4138e5eed 100644 --- a/tests/fsharp/SDKTests/tests/ToolsTest.targets +++ b/tests/fsharp/SDKTests/tests/ToolsTest.targets @@ -4,11 +4,10 @@ - + - @@ -18,8 +17,6 @@ - -