From af7a952c0af69c8bebf493548d10ab22833e364e Mon Sep 17 00:00:00 2001 From: Kevin Ransom Date: Wed, 17 May 2023 15:22:25 -0700 Subject: [PATCH 1/2] compress fsharp for sdk --- src/Compiler/FSharp.Compiler.Service.fsproj | 1 + src/FSharp.Build/FSharp.Build.fsproj | 2 +- ...Sharp.Compiler.Interactive.Settings.fsproj | 1 + src/FSharp.Core/FSharp.Core.fsproj | 2 +- .../FSharp.DependencyManager.Nuget.fsproj | 3 +- .../Microsoft.FSharp.Compiler.fsproj | 8 +++- .../Microsoft.FSharp.Compiler.nuspec | 42 +++++++++---------- src/fsc/fscAnyCpuProject/fscAnyCpu.fsproj | 1 + src/fsc/fscArm64Project/fscArm64.fsproj | 1 + src/fsc/fscProject/fsc.fsproj | 2 +- src/fsi/fsiAnyCpuProject/fsiAnyCpu.fsproj | 1 + src/fsi/fsiArm64Project/fsiArm64.fsproj | 1 + src/fsi/fsiProject/fsi.fsproj | 2 +- 13 files changed, 39 insertions(+), 28 deletions(-) diff --git a/src/Compiler/FSharp.Compiler.Service.fsproj b/src/Compiler/FSharp.Compiler.Service.fsproj index 8b61cfed8ca..8e783a342f0 100644 --- a/src/Compiler/FSharp.Compiler.Service.fsproj +++ b/src/Compiler/FSharp.Compiler.Service.fsproj @@ -25,6 +25,7 @@ $(IntermediateOutputPath)$(TargetFramework)\ $(IntermediateOutputPath)$(TargetFramework)\ false + Debug;Release;ReleaseCompressed diff --git a/src/FSharp.Build/FSharp.Build.fsproj b/src/FSharp.Build/FSharp.Build.fsproj index ff97e84dad5..0b477a0c387 100644 --- a/src/FSharp.Build/FSharp.Build.fsproj +++ b/src/FSharp.Build/FSharp.Build.fsproj @@ -13,7 +13,7 @@ NU1701;FS0075 true 7.0 - Debug;Release;Proto + Debug;Release;Proto;ReleaseCompressed diff --git a/src/FSharp.Compiler.Interactive.Settings/FSharp.Compiler.Interactive.Settings.fsproj b/src/FSharp.Compiler.Interactive.Settings/FSharp.Compiler.Interactive.Settings.fsproj index 32843bd4b13..4434c1db844 100644 --- a/src/FSharp.Compiler.Interactive.Settings/FSharp.Compiler.Interactive.Settings.fsproj +++ b/src/FSharp.Compiler.Interactive.Settings/FSharp.Compiler.Interactive.Settings.fsproj @@ -7,6 +7,7 @@ netstandard2.0 FSharp.Compiler.Interactive.Settings true + Debug;Release;ReleaseCompressed diff --git a/src/FSharp.Core/FSharp.Core.fsproj b/src/FSharp.Core/FSharp.Core.fsproj index 396618bb65d..cf267f6f914 100644 --- a/src/FSharp.Core/FSharp.Core.fsproj +++ b/src/FSharp.Core/FSharp.Core.fsproj @@ -36,7 +36,7 @@ true FSharp.Core redistributables from F# Tools version $(FSProductVersionPrefix) For F# $(FSLanguageVersion). Contains code from the F# Software Foundation. /blob/main/release-notes.md#FSharp-Core-$(FSCoreReleaseNotesVersion) - Debug;Release;Proto + Debug;Release;Proto;ReleaseCompressed diff --git a/src/FSharp.DependencyManager.Nuget/FSharp.DependencyManager.Nuget.fsproj b/src/FSharp.DependencyManager.Nuget/FSharp.DependencyManager.Nuget.fsproj index c0d27860b6b..111f1233043 100644 --- a/src/FSharp.DependencyManager.Nuget/FSharp.DependencyManager.Nuget.fsproj +++ b/src/FSharp.DependencyManager.Nuget/FSharp.DependencyManager.Nuget.fsproj @@ -9,7 +9,8 @@ true $(DefineConstants);COMPILER $(OtherFlags) --warnon:1182 - true + + Debug;Release;ReleaseCompressed diff --git a/src/Microsoft.FSharp.Compiler/Microsoft.FSharp.Compiler.fsproj b/src/Microsoft.FSharp.Compiler/Microsoft.FSharp.Compiler.fsproj index f3c8aba808a..522a1bdb4e4 100644 --- a/src/Microsoft.FSharp.Compiler/Microsoft.FSharp.Compiler.fsproj +++ b/src/Microsoft.FSharp.Compiler/Microsoft.FSharp.Compiler.fsproj @@ -34,8 +34,12 @@ - - + + Configuration=ReleaseCompressed;CompressAllMetadata=true + + + Configuration=ReleaseCompressed;CompressAllMetadata=true + diff --git a/src/Microsoft.FSharp.Compiler/Microsoft.FSharp.Compiler.nuspec b/src/Microsoft.FSharp.Compiler/Microsoft.FSharp.Compiler.nuspec index c87a70d9d62..be51b9e7966 100644 --- a/src/Microsoft.FSharp.Compiler/Microsoft.FSharp.Compiler.nuspec +++ b/src/Microsoft.FSharp.Compiler/Microsoft.FSharp.Compiler.nuspec @@ -26,33 +26,33 @@ this approach gives a very small deployment. Which is kind of necessary. --> - - - - - - - + + + + + + - - - - - - - + + + + + + - - + - - - + @@ -60,9 +60,9 @@ target="contentFiles\Shipping" /> - - diff --git a/src/fsc/fscAnyCpuProject/fscAnyCpu.fsproj b/src/fsc/fscAnyCpuProject/fscAnyCpu.fsproj index 9b0de73dd99..b792e01777d 100644 --- a/src/fsc/fscAnyCpuProject/fscAnyCpu.fsproj +++ b/src/fsc/fscAnyCpuProject/fscAnyCpu.fsproj @@ -7,6 +7,7 @@ anycpu .exe true + Debug;Release;ReleaseCompressed diff --git a/src/fsc/fscArm64Project/fscArm64.fsproj b/src/fsc/fscArm64Project/fscArm64.fsproj index 08265c05de1..a87677d9f55 100644 --- a/src/fsc/fscArm64Project/fscArm64.fsproj +++ b/src/fsc/fscArm64Project/fscArm64.fsproj @@ -7,6 +7,7 @@ arm64 .exe true + Debug;Release;ReleaseCompressed diff --git a/src/fsc/fscProject/fsc.fsproj b/src/fsc/fscProject/fsc.fsproj index 9172eefa5c0..02a0be9db52 100644 --- a/src/fsc/fscProject/fsc.fsproj +++ b/src/fsc/fscProject/fsc.fsproj @@ -6,7 +6,7 @@ net472;net7.0 net7.0 x86 - Debug;Release;Proto + Debug;Release;Proto;ReleaseCompressed diff --git a/src/fsi/fsiAnyCpuProject/fsiAnyCpu.fsproj b/src/fsi/fsiAnyCpuProject/fsiAnyCpu.fsproj index 9f71fce7692..a77d45ffeec 100644 --- a/src/fsi/fsiAnyCpuProject/fsiAnyCpu.fsproj +++ b/src/fsi/fsiAnyCpuProject/fsiAnyCpu.fsproj @@ -8,6 +8,7 @@ .exe true $(DefineConstants);FSI_SHADOW_COPY_REFERENCES;FSI_SERVER + Debug;Release;ReleaseCompressed diff --git a/src/fsi/fsiArm64Project/fsiArm64.fsproj b/src/fsi/fsiArm64Project/fsiArm64.fsproj index 3356a42f3f7..6c183d4a611 100644 --- a/src/fsi/fsiArm64Project/fsiArm64.fsproj +++ b/src/fsi/fsiArm64Project/fsiArm64.fsproj @@ -8,6 +8,7 @@ .exe true $(DefineConstants);FSI_SHADOW_COPY_REFERENCES;FSI_SERVER + Debug;Release;ReleaseCompressed diff --git a/src/fsi/fsiProject/fsi.fsproj b/src/fsi/fsiProject/fsi.fsproj index 799fc1362e6..ad09b1b8ee6 100644 --- a/src/fsi/fsiProject/fsi.fsproj +++ b/src/fsi/fsiProject/fsi.fsproj @@ -6,7 +6,7 @@ net472;net7.0 net7.0 x86 - Debug;Release;Proto + Debug;Release;Proto;ReleaseCompressed From e530deb9af0817121f7d08f8985a595d84c02e50 Mon Sep 17 00:00:00 2001 From: "Kevin Ransom (msft)" Date: Tue, 23 May 2023 11:42:42 -0700 Subject: [PATCH 2/2] Update FSharp.DependencyManager.Nuget.fsproj --- .../FSharp.DependencyManager.Nuget.fsproj | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/FSharp.DependencyManager.Nuget/FSharp.DependencyManager.Nuget.fsproj b/src/FSharp.DependencyManager.Nuget/FSharp.DependencyManager.Nuget.fsproj index 111f1233043..3d15f45e103 100644 --- a/src/FSharp.DependencyManager.Nuget/FSharp.DependencyManager.Nuget.fsproj +++ b/src/FSharp.DependencyManager.Nuget/FSharp.DependencyManager.Nuget.fsproj @@ -9,7 +9,7 @@ true $(DefineConstants);COMPILER $(OtherFlags) --warnon:1182 - + true Debug;Release;ReleaseCompressed