From 17f24c1411531306808b62b0dc830a27f08400db Mon Sep 17 00:00:00 2001 From: Kevin Ransom Date: Wed, 17 Apr 2024 15:38:28 -0700 Subject: [PATCH 1/7] corebeforeafter --- src/FSharp.Build/Microsoft.FSharp.Targets | 34 +++++++++++---- src/FSharp.Core/FSharp.Core.fsproj | 13 ++++++ .../tests/CompileOrder - BeforeAndAfter.proj | 42 +++++++++++++++++++ tests/fsharp/SDKTests/tests/ToolsTest.targets | 5 ++- 4 files changed, 86 insertions(+), 8 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..956d80fc554 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,12 +255,31 @@ this file. + + + + <__Sources Remove="*" /> + <__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 +391,7 @@ this file. Resources="@(ActualEmbeddedResources)" SkipCompilerExecution="$(SkipCompilerExecution)" SourceLink="$(SourceLink)" - Sources="@(CompileBefore);@(Compile);@(CompileAfter)" + Sources="@(Compile)" SubsystemVersion="$(SubsystemVersion)" Tailcalls="$(Tailcalls)" TargetType="$(OutputType)" @@ -434,7 +454,7 @@ this file. Overwrite="true"/> - + BeforeCompile <_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..855c676f000 100644 --- a/tests/fsharp/SDKTests/tests/ToolsTest.targets +++ b/tests/fsharp/SDKTests/tests/ToolsTest.targets @@ -4,10 +4,11 @@ - + + @@ -17,6 +18,8 @@ + + From 41ce9b53a0ab39b4d39cfa0743a32d0d58192def Mon Sep 17 00:00:00 2001 From: Kevin Ransom Date: Wed, 17 Apr 2024 16:01:04 -0700 Subject: [PATCH 2/7] depends --- src/FSharp.Build/Microsoft.FSharp.Targets | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/FSharp.Build/Microsoft.FSharp.Targets b/src/FSharp.Build/Microsoft.FSharp.Targets index 956d80fc554..41e868d0c74 100644 --- a/src/FSharp.Build/Microsoft.FSharp.Targets +++ b/src/FSharp.Build/Microsoft.FSharp.Targets @@ -279,7 +279,9 @@ this file. + + From 700ee3c4fc8f47f07895e68151cd176371707537 Mon Sep 17 00:00:00 2001 From: Kevin Ransom Date: Wed, 17 Apr 2024 16:25:50 -0700 Subject: [PATCH 4/7] temp --- src/FSharp.Build/Microsoft.FSharp.Targets | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/FSharp.Build/Microsoft.FSharp.Targets b/src/FSharp.Build/Microsoft.FSharp.Targets index f0c909669e1..5ba96f9da08 100644 --- a/src/FSharp.Build/Microsoft.FSharp.Targets +++ b/src/FSharp.Build/Microsoft.FSharp.Targets @@ -258,7 +258,7 @@ this file. - <__Sources Remove="*" /> + <__Sources Remove="@(__Sources)" /> <__Sources Include="@(Compile->WithMetadataValue('CompileOrder', 'CompileFirst'))" /> <__Sources Include="@(CompileBefore)" /> <__Sources Include="@(Compile->WithMetadataValue('CompileOrder', 'CompileBefore'))" /> @@ -268,9 +268,9 @@ this file. <__Sources Include="@(Compile->WithMetadataValue('CompileOrder', 'CompileLast'))" /> - - - + + + From 3e85b41989fd5eb80c42a2b0dc616a88f2337c18 Mon Sep 17 00:00:00 2001 From: Kevin Ransom Date: Wed, 17 Apr 2024 16:32:58 -0700 Subject: [PATCH 5/7] tweak --- src/FSharp.Build/Microsoft.FSharp.Targets | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/FSharp.Build/Microsoft.FSharp.Targets b/src/FSharp.Build/Microsoft.FSharp.Targets index 5ba96f9da08..d7f454b2979 100644 --- a/src/FSharp.Build/Microsoft.FSharp.Targets +++ b/src/FSharp.Build/Microsoft.FSharp.Targets @@ -271,8 +271,6 @@ this file. - - From e7a2c115e91c3dd88eef92ec82050f723548810b Mon Sep 17 00:00:00 2001 From: KevinRansom Date: Thu, 18 Apr 2024 00:17:17 -0700 Subject: [PATCH 6/7] tweak --- src/FSharp.Build/Microsoft.FSharp.Targets | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/FSharp.Build/Microsoft.FSharp.Targets b/src/FSharp.Build/Microsoft.FSharp.Targets index d7f454b2979..26999e6a646 100644 --- a/src/FSharp.Build/Microsoft.FSharp.Targets +++ b/src/FSharp.Build/Microsoft.FSharp.Targets @@ -273,7 +273,7 @@ this file. - + - BeforeCompile + CompileBefore <_FsGeneratedTfmAttributesSource Include="$(TargetFrameworkMonikerAssemblyAttributesPath)" /> From fbcb4d7c52e9def4bd44874e910101d40ada4abe Mon Sep 17 00:00:00 2001 From: Kevin Ransom Date: Thu, 18 Apr 2024 10:36:01 -0700 Subject: [PATCH 7/7] typo --- tests/fsharp/SDKTests/tests/ToolsTest.targets | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/fsharp/SDKTests/tests/ToolsTest.targets b/tests/fsharp/SDKTests/tests/ToolsTest.targets index 855c676f000..3e68a5af856 100644 --- a/tests/fsharp/SDKTests/tests/ToolsTest.targets +++ b/tests/fsharp/SDKTests/tests/ToolsTest.targets @@ -18,7 +18,7 @@ - +