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 @@
-
-