From 7c07673876fa2c5767621a36c3818b19ba064124 Mon Sep 17 00:00:00 2001 From: "Brett V. Forsgren" Date: Fri, 26 Jan 2018 17:16:52 -0800 Subject: [PATCH] build nuget packages after signing (#4269) --- build-everything.proj | 8 ++----- build-nuget-packages.proj | 21 +++++++++++++++++ build.cmd | 6 +++++ .../FSharp.Compiler.Template.nuget.props | 20 ++++++++++++++++ ...=> FSharp.Compiler.Template.nuget.targets} | 23 ------------------- .../Microsoft.FSharp.Compiler.nuget.proj | 11 +++++++++ .../Testing.FSharp.Compiler.nuget.proj | 11 +++++++++ 7 files changed, 71 insertions(+), 29 deletions(-) create mode 100644 build-nuget-packages.proj create mode 100644 src/fsharp/FSharp.Compiler.nuget/FSharp.Compiler.Template.nuget.props rename src/fsharp/FSharp.Compiler.nuget/{FSharp.Compiler.nuget.proj => FSharp.Compiler.Template.nuget.targets} (57%) create mode 100644 src/fsharp/FSharp.Compiler.nuget/Microsoft.FSharp.Compiler.nuget.proj create mode 100644 src/fsharp/FSharp.Compiler.nuget/Testing.FSharp.Compiler.nuget.proj diff --git a/build-everything.proj b/build-everything.proj index f236cde62..5c52b99ae 100644 --- a/build-everything.proj +++ b/build-everything.proj @@ -24,8 +24,8 @@ - - + + @@ -47,10 +47,6 @@ - - - - diff --git a/build-nuget-packages.proj b/build-nuget-packages.proj new file mode 100644 index 000000000..2aab5455e --- /dev/null +++ b/build-nuget-packages.proj @@ -0,0 +1,21 @@ + + + + + + + + + + + + + + + + + + + + + diff --git a/build.cmd b/build.cmd index 0201854c8..6f7e9d506 100644 --- a/build.cmd +++ b/build.cmd @@ -686,6 +686,12 @@ if not "%SIGN_TYPE%" == "" ( if ERRORLEVEL 1 echo Error running sign tool && goto :failure ) +echo ---------------- Done with assembly signing, start package creation --------------- + +echo %_msbuildexe% %msbuildflags% build-nuget-packages.proj /p:Configuration=%BUILD_CONFIG% + %_msbuildexe% %msbuildflags% build-nuget-packages.proj /p:Configuration=%BUILD_CONFIG% +if ERRORLEVEL 1 echo Error building NuGet packages && goto :failure + if "%BUILD_SETUP%" == "1" ( echo %_msbuildexe% %msbuildflags% setup\build-msi.proj /p:Configuration=%BUILD_CONFIG% %_msbuildexe% %msbuildflags% setup\build-msi.proj /p:Configuration=%BUILD_CONFIG% diff --git a/src/fsharp/FSharp.Compiler.nuget/FSharp.Compiler.Template.nuget.props b/src/fsharp/FSharp.Compiler.nuget/FSharp.Compiler.Template.nuget.props new file mode 100644 index 000000000..bb30ab3a7 --- /dev/null +++ b/src/fsharp/FSharp.Compiler.nuget/FSharp.Compiler.Template.nuget.props @@ -0,0 +1,20 @@ + + + $(MSBuildProjectDirectory)\..\.. + rc + obj\BuildVersionFile.props + + + + + + https://github.com/Microsoft/visualfsharp/blob/master/License.txt + https://github.com/Microsoft/visualfsharp + Microsoft and F# Software Foundation + Visual F# Compiler FSharp functional programming + $(FSharpSourcesRoot)\..\$(Configuration)\coreclr\bin + -rtm-$(BuildRevision.Trim())-0 + $(FSPackageVersion)$(PreReleaseSuffix) + -prop "licenseUrl=$(PackageLicenceUrl)" -prop "version=$(PackageVersion)" -prop "authors=$(PackageAuthors)" -prop "projectUrl=$(PackageProjectUrl)" -prop "tags=$(PackageTags)" + + diff --git a/src/fsharp/FSharp.Compiler.nuget/FSharp.Compiler.nuget.proj b/src/fsharp/FSharp.Compiler.nuget/FSharp.Compiler.Template.nuget.targets similarity index 57% rename from src/fsharp/FSharp.Compiler.nuget/FSharp.Compiler.nuget.proj rename to src/fsharp/FSharp.Compiler.nuget/FSharp.Compiler.Template.nuget.targets index 763ce2f6e..d8a8818e9 100644 --- a/src/fsharp/FSharp.Compiler.nuget/FSharp.Compiler.nuget.proj +++ b/src/fsharp/FSharp.Compiler.nuget/FSharp.Compiler.Template.nuget.targets @@ -1,27 +1,4 @@ - - $(MSBuildProjectDirectory)\..\.. - rc - obj\BuildVersionFile.props - - - - - - https://github.com/Microsoft/visualfsharp/blob/master/License.txt - https://github.com/Microsoft/visualfsharp - Microsoft and F# Software Foundation - Visual F# Compiler FSharp functional programming - $(FSharpSourcesRoot)\..\$(Configuration)\coreclr\bin - -rtm-$(BuildRevision.Trim())-0 - $(FSPackageVersion)$(PreReleaseSuffix) - -prop "licenseUrl=$(PackageLicenceUrl)" -prop "version=$(PackageVersion)" -prop "authors=$(PackageAuthors)" -prop "projectUrl=$(PackageProjectUrl)" -prop "tags=$(PackageTags)" - - - - - - diff --git a/src/fsharp/FSharp.Compiler.nuget/Microsoft.FSharp.Compiler.nuget.proj b/src/fsharp/FSharp.Compiler.nuget/Microsoft.FSharp.Compiler.nuget.proj new file mode 100644 index 000000000..53ed79e8a --- /dev/null +++ b/src/fsharp/FSharp.Compiler.nuget/Microsoft.FSharp.Compiler.nuget.proj @@ -0,0 +1,11 @@ + + + + + + + + + + + diff --git a/src/fsharp/FSharp.Compiler.nuget/Testing.FSharp.Compiler.nuget.proj b/src/fsharp/FSharp.Compiler.nuget/Testing.FSharp.Compiler.nuget.proj new file mode 100644 index 000000000..dc9f19add --- /dev/null +++ b/src/fsharp/FSharp.Compiler.nuget/Testing.FSharp.Compiler.nuget.proj @@ -0,0 +1,11 @@ + + + + + + + + + + +