build nuget packages after signing (#4269)

This commit is contained in:
Brett V. Forsgren 2018-01-26 17:16:52 -08:00 коммит произвёл GitHub
Родитель dad172eba3
Коммит 7c07673876
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
7 изменённых файлов: 71 добавлений и 29 удалений

Просмотреть файл

@ -24,7 +24,7 @@
<ProjectsWithCoreClr Include="src/fsharp/FSharp.Compiler.Interactive.Settings/FSharp.Compiler.Interactive.Settings.fsproj" />
<ProjectsWithCoreClr Include="src/fsharp/Fsc/Fsc.fsproj" />
<ProjectsWithCoreClr Include="src/fsharp/fsi/Fsi.fsproj" />
<ProjectsWithCoreClr Include="src/fsharp/FSharp.Compiler.nuget/FSharp.Compiler.nuget.proj" />
<ProjectsWithCoreClr Include="src/fsharp/FSharp.Compiler.nuget/Testing.FSharp.Compiler.nuget.proj" />
</ItemGroup>
<ItemGroup Condition="'$(BUILD_VS)'=='1'">
@ -47,10 +47,6 @@
<SetupProjects Include="setup/fsharp-setup-build.proj" />
</ItemGroup>
<ItemGroup Condition="'$(BUILD_NUGET)'=='1'">
<NugetProjects Include="src/fsharp/FSharp.Core.nuget/FSharp.Core.nuget.proj" />
</ItemGroup>
<!-- +++++++++++++++++++++++ Project selection for testing +++++++++++++++++++++++++++++++ -->
<ItemGroup Condition="'$(TEST_NET40_COREUNIT_SUITE)'=='1'" >

21
build-nuget-packages.proj Normal file
Просмотреть файл

@ -0,0 +1,21 @@
<!-- Copyright (c) Microsoft Corporation. All Rights Reserved. See License.txt in the project root for license information. -->
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003" ToolsVersion="4.0">
<ItemGroup>
<PackageProjects Include="src\fsharp\FSharp.Compiler.nuget\Microsoft.FSharp.Compiler.nuget.proj" Condition="'$(BUILD_CORECLR)'=='1'" />
<PackageProjects Include="src\fsharp\FSharp.Core.nuget\FSharp.Core.nuget.proj" Condition="'$(BUILD_NUGET)'=='1'" />
</ItemGroup>
<Target Name="Build">
<MSBuild Projects="@(PackageProjects)" Targets="Build" BuildInParallel="true" Properties="Configuration=$(Configuration)" />
</Target>
<Target Name="Rebuild">
<MSBuild Projects="@(PackageProjects)" Targets="Rebuild" BuildInParallel="true" Properties="Configuration=$(Configuration)" />
</Target>
<Target Name="Clean">
<MSBuild Projects="@(PackageProjects)" Targets="Clean" BuildInParallel="true" Properties="Configuration=$(Configuration)" />
</Target>
</Project>

Просмотреть файл

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

Просмотреть файл

@ -0,0 +1,20 @@
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<FSharpSourcesRoot>$(MSBuildProjectDirectory)\..\..</FSharpSourcesRoot>
<PreReleaseLabel>rc</PreReleaseLabel>
<BuildVersionFilePath Condition="'$(BuildVersionFilePath)'==''" >obj\BuildVersionFile.props</BuildVersionFilePath>
</PropertyGroup>
<Import Project="$(FSharpSourcesRoot)\FSharpSource.Settings.targets" />
<PropertyGroup>
<PackageLicenceUrl Condition="'$(PackageLicenceUrl)' == ''">https://github.com/Microsoft/visualfsharp/blob/master/License.txt</PackageLicenceUrl>
<PackageProjectUrl Condition="'$(PackageProjectUrl)' == ''">https://github.com/Microsoft/visualfsharp</PackageProjectUrl>
<PackageAuthors Condition="'$(PackageAuthors)' == ''" >Microsoft and F# Software Foundation</PackageAuthors>
<PackageTags Condition="'$(PackageTags)' == ''" >Visual F# Compiler FSharp functional programming</PackageTags>
<OutputPath>$(FSharpSourcesRoot)\..\$(Configuration)\coreclr\bin</OutputPath>
<PreReleaseSuffix Condition="'$(PreRelease)' != 'false'">-rtm-$(BuildRevision.Trim())-0</PreReleaseSuffix>
<PackageVersion>$(FSPackageVersion)$(PreReleaseSuffix)</PackageVersion>
<PackageProperties>-prop "licenseUrl=$(PackageLicenceUrl)" -prop "version=$(PackageVersion)" -prop "authors=$(PackageAuthors)" -prop "projectUrl=$(PackageProjectUrl)" -prop "tags=$(PackageTags)"</PackageProperties>
</PropertyGroup>
</Project>

Просмотреть файл

@ -1,27 +1,4 @@
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<FSharpSourcesRoot>$(MSBuildProjectDirectory)\..\..</FSharpSourcesRoot>
<PreReleaseLabel>rc</PreReleaseLabel>
<BuildVersionFilePath Condition="'$(BuildVersionFilePath)'==''" >obj\BuildVersionFile.props</BuildVersionFilePath>
</PropertyGroup>
<Import Project="$(FSharpSourcesRoot)\FSharpSource.Settings.targets" />
<PropertyGroup>
<PackageLicenceUrl Condition="'$(PackageLicenceUrl)' == ''">https://github.com/Microsoft/visualfsharp/blob/master/License.txt</PackageLicenceUrl>
<PackageProjectUrl Condition="'$(PackageProjectUrl)' == ''">https://github.com/Microsoft/visualfsharp</PackageProjectUrl>
<PackageAuthors Condition="'$(PackageAuthors)' == ''" >Microsoft and F# Software Foundation</PackageAuthors>
<PackageTags Condition="'$(PackageTags)' == ''" >Visual F# Compiler FSharp functional programming</PackageTags>
<OutputPath>$(FSharpSourcesRoot)\..\$(Configuration)\coreclr\bin</OutputPath>
<PreReleaseSuffix Condition="'$(PreRelease)' != 'false'">-rtm-$(BuildRevision.Trim())-0</PreReleaseSuffix>
<PackageVersion>$(FSPackageVersion)$(PreReleaseSuffix)</PackageVersion>
<PackageProperties>-prop "licenseUrl=$(PackageLicenceUrl)" -prop "version=$(PackageVersion)" -prop "authors=$(PackageAuthors)" -prop "projectUrl=$(PackageProjectUrl)" -prop "tags=$(PackageTags)"</PackageProperties>
</PropertyGroup>
<ItemGroup Condition="'$(TargetDotnetProfile)' == 'coreclr'">
<PackageNuspec Include="Testing.FSharp.Compiler.nuspec" />
<PackageNuspec Include="Microsoft.FSharp.Compiler.nuspec" />
</ItemGroup>
<ItemGroup>
<RefMarker Include="_._"></RefMarker>

Просмотреть файл

@ -0,0 +1,11 @@
<Project>
<Import Project="FSharp.Compiler.Template.nuget.props" />
<ItemGroup>
<PackageNuspec Include="Microsoft.FSharp.Compiler.nuspec" />
</ItemGroup>
<Import Project="FSharp.Compiler.Template.nuget.targets" />
</Project>

Просмотреть файл

@ -0,0 +1,11 @@
<Project>
<Import Project="FSharp.Compiler.Template.nuget.props" />
<ItemGroup>
<PackageNuspec Include="Testing.FSharp.Compiler.nuspec" />
</ItemGroup>
<Import Project="FSharp.Compiler.Template.nuget.targets" />
</Project>