Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions FSharpBuild.Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,19 @@

<!-- nuget -->
<PropertyGroup>
<!-- Point to artifacts folder as an additional nuget package source -->
<RestoreAdditionalProjectSources Condition = "Exists('$(ArtifactsPackagesDir)') and '$(RestoreAdditionalProjectSources)' != ''">$(RestoreAdditionalProjectSources);$(ArtifactsPackagesDir)</RestoreAdditionalProjectSources>
<RestoreAdditionalProjectSources Condition = "Exists('$(ArtifactsPackagesDir)') and '$(RestoreAdditionalProjectSources)' == ''">$(ArtifactsPackagesDir)</RestoreAdditionalProjectSources>

<!-- default NuGet package restore location -->
<NuGetPackageRoot Condition="'$(NuGetPackageRoot)' == ''">$(NUGET_PACKAGES)</NuGetPackageRoot>
<NuGetPackageRoot Condition="'$(NuGetPackageRoot)' == '' AND '$(OS)' == 'Windows_NT'">$(UserProfile)\.nuget\packages\</NuGetPackageRoot>
<NuGetPackageRoot Condition="'$(NuGetPackageRoot)' == '' AND '$(OS)' != 'Windows_NT'">$(HOME)/.nuget/packages/</NuGetPackageRoot>

<!-- ensure there is a trailing slash -->
<NuGetPackageRoot Condition="!HasTrailingSlash('$(NuGetPackageRoot)') AND '$(OS)' == 'Windows_NT'">$(NuGetPackageRoot)\</NuGetPackageRoot>
<NuGetPackageRoot Condition="!HasTrailingSlash('$(NuGetPackageRoot)') AND '$(OS)' != 'Windows_NT'">$(NuGetPackageRoot)/</NuGetPackageRoot>

<!-- ensure all NuGet packages come from the `$(NuGetPackageRoot)` variable -->
<DisableImplicitNuGetFallbackFolder>true</DisableImplicitNuGetFallbackFolder>
</PropertyGroup>
Expand All @@ -51,6 +57,7 @@
<StrongNames>true</StrongNames>
<DelaySign>true</DelaySign>
</PropertyGroup>

<PropertyGroup Condition="'$(MonoPackaging)' == 'true'">
<AssemblyOriginatorKeyFile>$(FSharpSourcesRoot)\fsharp\test.snk</AssemblyOriginatorKeyFile>
<DelaySign>false</DelaySign>
Expand Down
14 changes: 0 additions & 14 deletions build-nuget-packages.proj

This file was deleted.

14 changes: 7 additions & 7 deletions build.cmd
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
rem Copyright (c) Microsoft Corporation. All Rights Reserved. See License.txt in the project root for license information.
@if "%_echo%"=="" echo off
setlocal enableDelayedExpansion
setlocal enableDelayedExpansion

:ARGUMENTS_VALIDATION
if /I "%1" == "--help" (goto :USAGE)
Expand Down Expand Up @@ -108,10 +108,12 @@ if /i "%_autoselect%" == "1" (

if /i "%_autoselect_tests%" == "1" (
if /i "%BUILD_NET40_FSHARP_CORE%" == "1" (
set BUILD_NUGET=1
set TEST_NET40_COREUNIT_SUITE=1
)

if /i "%BUILD_NET40%" == "1" (
set BUILD_NUGET=1
set TEST_NET40_COMPILERUNIT_SUITE=1
set TEST_NET40_COREUNIT_SUITE=1
set TEST_NET40_FSHARP_SUITE=1
Expand Down Expand Up @@ -264,6 +266,7 @@ if /i "%ARG%" == "ci_part2" (
set BUILD_PROTO=1
set BUILD_NET40=1
set BUILD_NET40_FSHARP_CORE=1
set BUILD_NUGET=1
set TEST_NET40_COMPILERUNIT_SUITE=1
set TEST_NET40_COREUNIT_SUITE=1
set TEST_NET40_FSHARPQA_SUITE=1
Expand Down Expand Up @@ -294,6 +297,7 @@ if /i "%ARG%" == "ci_part4" (
set BUILD_CORECLR=1
set BUILD_NET40_FSHARP_CORE=1
set BUILD_NET40=1
set BUILD_NUGET=1
set BUILD_FCS=1
set TEST_FCS=1
set CI=1
Expand Down Expand Up @@ -393,13 +397,15 @@ if /i "%ARG%" == "test-net40-ideunit" (
if /i "%ARG%" == "test-net40-coreunit" (
set _autoselect=0
set BUILD_NET40_FSHARP_CORE=1
set BUILD_NUGET=1
set TEST_NET40_COREUNIT_SUITE=1
)

if /i "%ARG%" == "test-coreclr-coreunit" (
set _autoselect=0
set BUILD_PROTO_WITH_CORECLR_LKG=1
set BUILD_CORECLR=1
set BUILD_NUGET=1
set TEST_CORECLR_COREUNIT_SUITE=1
)

Expand Down Expand Up @@ -699,12 +705,6 @@ 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% /t:Pack /bl:!logdir!\msbuild.build-nuget-packages.build.%BUILD_CONFIG%.binlog
%_msbuildexe% %msbuildflags% build-nuget-packages.proj /p:Configuration=%BUILD_CONFIG% /t:Pack /bl:!logdir!\msbuild.build-nuget-packages.build.%BUILD_CONFIG%.binlog
if ERRORLEVEL 1 echo Error building NuGet packages && goto :failure

if not "%SIGN_TYPE%" == "" (
echo %_msbuildexe% build\projects\Signing.proj /t:DoSigning /p:SignType=%SIGN_TYPE% /p:Configuration=%BUILD_CONFIG% /p:BinaryBasepath=%~dp0artifacts\packages\%BUILD_CONFIG% /p:ConfigFile=%~dp0build\config\PackageSignToolData.json
%_msbuildexe% build\projects\Signing.proj /t:DoSigning /p:SignType=%SIGN_TYPE% /p:Configuration=%BUILD_CONFIG% /p:BinaryBasepath=%~dp0artifacts\packages\%BUILD_CONFIG% /p:ConfigFile=%~dp0build\config\PackageSignToolData.json
Expand Down
9 changes: 8 additions & 1 deletion build/config/AssemblySignToolData.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,11 +44,18 @@
"VSSetup\\*\\Insertion\\Microsoft.FSharp.Dependencies.vsix",
"VSSetup\\*\\Insertion\\Microsoft.FSharp.VSIX.Full.Resources.*.vsix"
]
},
{
"certificate": "NuGet",
"strongName": null,
"values": [
"artifacts\\*.nupkg",
"artifacts\\*\\*.nupkg"
]
}
],
"exclude": [
"e_sqlite3.dll",
"FSharp.Core.4.5.2.nupkg",
"FSharp.Data.TypeProviders.dll",
"Microsoft.Build.dll",
"Microsoft.Build.Framework.dll",
Expand Down
3 changes: 2 additions & 1 deletion build/targets/AssemblyVersions.props
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@
<_Build_Number>$(BUILD_BUILDNUMBER.Substring(9))</_Build_Number>
<Build_FileVersion>$(_Build_Year).$(_Build_Month).$(_Build_Day).$(_Build_Number)</Build_FileVersion>

<FSCoreMajorVersion>4.5</FSCoreMajorVersion>
<FSLanguageVersion>4.5</FSLanguageVersion>
<FSCoreMajorVersion>$(FSLanguageVersion)</FSCoreMajorVersion>
<FSCorePackageVersion>$(FSCoreMajorVersion).5</FSCorePackageVersion>
<FSCoreVersion>$(FSCoreMajorVersion).0.0</FSCoreVersion>

Expand Down
9 changes: 7 additions & 2 deletions fsharp.proj
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
<BuildFCS Condition="'$(BUILD_FCS)' == '1'">true</BuildFCS>
<BuildNuget Condition="'$(BUILD_NUGET)' == '1' or '$(BUILD_SETUP)' == '1'">true</BuildNuget>
<BuildSetup Condition="'$(BUILD_SETUP)' == '1'">true</BuildSetup>
<BuildNuget Condition="'$(BUILD_NUGET)' == '1'">true</BuildNuget>

<TestCompiler Condition="'$(TEST_NET40_COMPILERUNIT_SUITE)' == '1'">true</TestCompiler>
<TestCompiler Condition="'$(TEST_CORECLR_COREUNIT_SUITE)' == '1'">true</TestCompiler>
Expand Down Expand Up @@ -93,6 +94,10 @@
<Projects Include="$(MSBuildThisFileDirectory)vsintegration\fsharp-vsintegration-vsix-build.proj" />
</ItemGroup>

<ItemGroup Condition="'$(BuildCompiler)' == 'true' OR '$(BuildNuget)' == 'true' OR '$(BuildVS)' == 'true' OR'$(_RunningRestore)' == 'true'">
<NugetProjects Include="src\fsharp\FSharp.Core\FSharp.Core.fsproj" />
</ItemGroup>

<ItemGroup Condition="'$(BuildFCS)' == 'true' OR '$(_RunningRestore)' == 'true'">
<Projects Include="$(MSBuildThisFileDirectory)fcs\FSharp.Compiler.Service\FSharp.Compiler.Service.fsproj" />
<Projects Include="$(MSBuildThisFileDirectory)fcs\FSharp.Compiler.Service.MSBuild.v12\FSharp.Compiler.Service.MSBuild.v12.fsproj" />
Expand Down Expand Up @@ -135,7 +140,6 @@
<ItemGroup Condition="'$(TestFCS)' == 'true' OR '$(_RunningRestore)' == 'true'">
<Projects Include="$(MSBuildThisFileDirectory)fcs\FSharp.Compiler.Service.Tests\FSharp.Compiler.Service.Tests.fsproj" />
<Projects Include="$(MSBuildThisFileDirectory)tests\projects\Sample_NETCoreSDK_FSharp_Library_netstandard2_0\Sample_NETCoreSDK_FSharp_Library_netstandard2_0.fsproj" />
<Projects Include="$(MSBuildThisFileDirectory)fcs\FSharp.Compiler.Service.Tests\FSharp.Compiler.Service.Tests.fsproj" />
</ItemGroup>

<ItemGroup Condition="'$(TestIDE)' == 'true' OR '$(_RunningRestore)' == 'true'">
Expand All @@ -151,8 +155,9 @@
</Target>

<Target Name="Build" DependsOnTargets="CollectProjects">
<MSBuild Projects="@(Projects);@(NugetProjects)" Targets="Build" Properties="Configuration=$(Configuration);BUILD_PUBLICSIGN=$(BUILD_PUBLICSIGN);$(CustomProps)" />
<!-- Nuget projects need to be built before the vsix stuff, so that the vsix build -->
<MSBuild Projects="@(NugetProjects)" Targets="Pack" Properties="Configuration=$(Configuration);BUILD_PUBLICSIGN=$(BUILD_PUBLICSIGN);$(CustomProps)" />
<MSBuild Projects="@(Projects);@(NugetProjects)" Targets="Build" Properties="Configuration=$(Configuration);BUILD_PUBLICSIGN=$(BUILD_PUBLICSIGN);$(CustomProps)" />
</Target>

<Target Name="Rebuild" DependsOnTargets="CollectProjects">
Expand Down
3 changes: 0 additions & 3 deletions src/buildtools/Directory.Build.props

This file was deleted.

3 changes: 0 additions & 3 deletions src/buildtools/Directory.Build.targets

This file was deleted.

2 changes: 1 addition & 1 deletion src/fsharp/FSharp.Core/FSharp.Core.nuspec
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
netstandard1.6 (netstandard1.6)
netstandard2.0 (netstandard2.0)

Commit hash: $githeadsha$.
Commit hash: $githeadsha$
</description>
<owners>$owners$</owners>
<version>$version$</version>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>netstandard2.0</TargetFramework>
<FSharpCoreImplicitPackageVersion>4.5.*</FSharpCoreImplicitPackageVersion>
</PropertyGroup>
<ItemGroup>
<Compile Include="Library1.fs" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
<WizardData>
<packages repository="extension" repositoryId="VisualFSharpTemplates">
<package id="System.ValueTuple" version="4.4.0" />
<package id="FSharp.Core" version="4.5.2" />
<package id="FSharp.Core" version="4.5.5" />
</packages>
</WizardData>
</VSTemplate>
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
<WizardData>
<packages repository="extension" repositoryId="VisualFSharpTemplates">
<package id="System.ValueTuple" version="4.4.0" />
<package id="FSharp.Core" version="4.5.2" />
<package id="FSharp.Core" version="4.5.5" />
</packages>
</WizardData>
</VSTemplate>
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
<WizardData>
<packages repository="extension" repositoryId="VisualFSharpTemplates">
<package id="System.ValueTuple" version="4.4.0" />
<package id="FSharp.Core" version="4.5.2" />
<package id="FSharp.Core" version="4.5.5" />
</packages>
</WizardData>
</VSTemplate>
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@
</PropertyGroup>

<ItemGroup>
<Content Include="$(NuGetPackageRoot)\FSharp.Core\4.5.2\FSharp.Core.4.5.2.nupkg">
<Content Include="$(MSBuildThisFileDirectory)\..\..\..\artifacts\packages\$(Configuration)\FSharp.Core.$(FSCorePackageVersion).nupkg">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
<Link>packages\FSharp.Core.4.5.2.nupkg</Link>
<Link>packages\FSharp.Core.$(FSCorePackageVersion).nupkg</Link>
<IncludeInVSIX>true</IncludeInVSIX>
</Content>
<Content Include="$(NuGetPackageRoot)\System.ValueTuple\4.4.0\System.ValueTuple.4.4.0.nupkg">
Expand Down