|
| 1 | +<Project> |
| 2 | + |
| 3 | + <Import Project="build\targets\AssemblyVersions.props" /> |
| 4 | + <Import Project="build\targets\PackageVersions.props" /> |
| 5 | + <Import Project="build\targets\GitHash.props" /> |
| 6 | + <Import Project="build\targets\CommonPackages.targets" /> |
| 7 | + |
| 8 | + <!-- directory locations --> |
| 9 | + <PropertyGroup> |
| 10 | + <Configuration Condition="'$(Configuration)' == ''">Debug</Configuration> |
| 11 | + <RepoRoot>$(MSBuildThisFileDirectory)</RepoRoot> |
| 12 | + <FSharpSourcesRoot>$(RepoRoot)src</FSharpSourcesRoot> |
| 13 | + <ArtifactsDir>$(RepoRoot)artifacts</ArtifactsDir> |
| 14 | + <ToolsRoot>$(ArtifactsDir)\toolset</ToolsRoot> |
| 15 | + <ArtifactsBinDir>$(ArtifactsDir)\bin</ArtifactsBinDir> |
| 16 | + <ArtifactsObjDir>$(ArtifactsDir)\obj</ArtifactsObjDir> |
| 17 | + <ArtifactsPackagesDir>$(ArtifactsDir)\packages</ArtifactsPackagesDir> |
| 18 | + <BaseOutputPath>$(ArtifactsBinDir)\$(MSBuildProjectName)</BaseOutputPath> |
| 19 | + <BaseIntermediateOutputPath>$(ArtifactsObjDir)\$(MSBuildProjectName)</BaseIntermediateOutputPath> |
| 20 | + <SymStoreDirectory>$(ArtifactsDir)\SymStore</SymStoreDirectory> |
| 21 | + <ProtoOutputPath Condition="'$(OS)' != 'Unix'">$(ArtifactsBinDir)\fsc\Proto\net46</ProtoOutputPath> |
| 22 | + <ProtoOutputPath Condition="'$(OS)' == 'Unix'">$(ArtifactsBinDir)/fsc/Proto/netcoreapp2.1</ProtoOutputPath> |
| 23 | + <ValueTupleImplicitPackageVersion>4.4.0</ValueTupleImplicitPackageVersion> |
| 24 | + </PropertyGroup> |
| 25 | + |
| 26 | + <!-- nuget --> |
| 27 | + <PropertyGroup> |
| 28 | + <!-- default NuGet package restore location --> |
| 29 | + <NuGetPackageRoot Condition="'$(NuGetPackageRoot)' == ''">$(NUGET_PACKAGES)</NuGetPackageRoot> |
| 30 | + <NuGetPackageRoot Condition="'$(NuGetPackageRoot)' == '' AND '$(OS)' == 'Windows_NT'">$(UserProfile)\.nuget\packages\</NuGetPackageRoot> |
| 31 | + <NuGetPackageRoot Condition="'$(NuGetPackageRoot)' == '' AND '$(OS)' != 'Windows_NT'">$(HOME)/.nuget/packages/</NuGetPackageRoot> |
| 32 | + <!-- ensure there is a trailing slash --> |
| 33 | + <NuGetPackageRoot Condition="!HasTrailingSlash('$(NuGetPackageRoot)') AND '$(OS)' == 'Windows_NT'">$(NuGetPackageRoot)\</NuGetPackageRoot> |
| 34 | + <NuGetPackageRoot Condition="!HasTrailingSlash('$(NuGetPackageRoot)') AND '$(OS)' != 'Windows_NT'">$(NuGetPackageRoot)/</NuGetPackageRoot> |
| 35 | + <!-- ensure all NuGet packages come from the `$(NuGetPackageRoot)` variable --> |
| 36 | + <DisableImplicitNuGetFallbackFolder>true</DisableImplicitNuGetFallbackFolder> |
| 37 | + </PropertyGroup> |
| 38 | + |
| 39 | + <!-- mono --> |
| 40 | + <PropertyGroup Condition="'$(OS)' == 'Unix'"> |
| 41 | + <MonoPackaging Condition="$(TargetFramework.StartsWith('net4'))">true</MonoPackaging> |
| 42 | + <FrameworkPathOverride Condition="'$(TargetFramework)' == 'net45'">/usr/lib/mono/4.5-api</FrameworkPathOverride> |
| 43 | + <FrameworkPathOverride Condition="'$(TargetFramework)' == 'net46'">/usr/lib/mono/4.6-api</FrameworkPathOverride> |
| 44 | + </PropertyGroup> |
| 45 | + |
| 46 | + <!-- signing --> |
| 47 | + <PropertyGroup> |
| 48 | + <SkipSigning>false</SkipSigning> |
| 49 | + <SignAssembly>true</SignAssembly> |
| 50 | + <AssemblyOriginatorKeyFile>$(FSharpSourcesRoot)\fsharp\msft.pubkey</AssemblyOriginatorKeyFile> |
| 51 | + <StrongNames>true</StrongNames> |
| 52 | + <DelaySign>true</DelaySign> |
| 53 | + </PropertyGroup> |
| 54 | + <PropertyGroup Condition="'$(MonoPackaging)' == 'true'"> |
| 55 | + <AssemblyOriginatorKeyFile>$(FSharpSourcesRoot)\fsharp\test.snk</AssemblyOriginatorKeyFile> |
| 56 | + <DelaySign>false</DelaySign> |
| 57 | + <DefineConstants>STRONG_NAME_FSHARP_COMPILER_WITH_TEST_KEY;$(DefineConstants)</DefineConstants> |
| 58 | + </PropertyGroup> |
| 59 | + |
| 60 | + <!-- localization --> |
| 61 | + <PropertyGroup> |
| 62 | + <EnableXlfLocalization Condition="'$(EnableXlfLocalization)' == '' AND ('$(Configuration)' == 'Proto' OR '$(MonoPackaging)' == 'true')">false</EnableXlfLocalization> |
| 63 | + <UpdateXlfOnBuild Condition="'$(CI)' != '1'">true</UpdateXlfOnBuild> |
| 64 | + </PropertyGroup> |
| 65 | + |
| 66 | + <!-- other --> |
| 67 | + <PropertyGroup> |
| 68 | + <DebugType>portable</DebugType> |
| 69 | + <MicroBuildAssemblyFileLanguage>fs</MicroBuildAssemblyFileLanguage> |
| 70 | + <UseStandardResourceNames>false</UseStandardResourceNames> |
| 71 | + <GenerateDocumentationFile>true</GenerateDocumentationFile> |
| 72 | + </PropertyGroup> |
| 73 | + |
| 74 | + <!-- SDK targets override --> |
| 75 | + <PropertyGroup Condition="'$(Configuration)' != 'Proto' AND Exists('$(ProtoOutputPath)')"> |
| 76 | + <FSharpTargetsPath>$(ProtoOutputPath)\Microsoft.FSharp.Targets</FSharpTargetsPath> |
| 77 | + <FSharpPropsShim>$(ProtoOutputPath)\Microsoft.FSharp.NetSdk.props</FSharpPropsShim> |
| 78 | + <FSharpTargetsShim>$(ProtoOutputPath)\Microsoft.FSharp.NetSdk.targets</FSharpTargetsShim> |
| 79 | + <FSharpOverridesTargetsShim>$(ProtoOutputPath)\Microsoft.FSharp.Overrides.NetSdk.targets</FSharpOverridesTargetsShim> |
| 80 | + </PropertyGroup> |
| 81 | + |
| 82 | +</Project> |
0 commit comments