-
Notifications
You must be signed in to change notification settings - Fork 0
/
Directory.Build.props
38 lines (38 loc) · 2.12 KB
/
Directory.Build.props
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
<Project>
<Import Project="$(MSBuildThisFileDirectory)Directory.UserConfig.props" />
<!-- IMPORTANT: Only changes the configuration below if you know what you are doing -->
<!-- Make F# support Central Package Management -->
<PropertyGroup>
<DisableImplicitSystemValueTupleReference>true</DisableImplicitSystemValueTupleReference>
<DisableImplicitFSharpCoreReference>true</DisableImplicitFSharpCoreReference>
</PropertyGroup>
<!-- Use lock files -->
<PropertyGroup Condition="'$(GITHUB_ACTIONS)' == 'true'">
<ContinuousIntegrationBuild>true</ContinuousIntegrationBuild>
</PropertyGroup>
<PropertyGroup>
<RestorePackagesWithLockFile>true</RestorePackagesWithLockFile>
<RestoreLockedMode Condition="'$(ContinuousIntegrationBuild)' == 'true'">true</RestoreLockedMode>
</PropertyGroup>
<PropertyGroup>
<PackageLicenseFile>LICENSE.txt</PackageLicenseFile>
<PackageReadmeFile>README.md</PackageReadmeFile>
<GenerateDocumentationFile>true</GenerateDocumentationFile>
</PropertyGroup>
<ItemGroup>
<None Include="$(MSBuildThisFileDirectory)/LICENSE.txt" Pack="true"
PackagePath="$(PackageLicenseFile)" />
<None Include="$(MSBuildThisFileDirectory)\README.md" Pack="true" PackagePath="\" />
</ItemGroup>
<!-- Packages common to all the projects excepts build project -->
<ItemGroup Condition="'$(PackageId)'!='EasyBuild'">
<!-- Depends on the same version of FSharp.Core for all the projects -->
<PackageReference Include="FSharp.Core" PrivateAssets="all" />
</ItemGroup>
<!-- Custom target to check if the user filled in the expected configuration -->
<Target Name="TemplateVerification" BeforeTargets="Pack">
<Error Text="Please set 'PackageProjectUrl' in 'Directory.UserConfig.props'" Condition="'$(PackageProjectUrl)' == ''" />
<Error Text="Please set 'FablePackageType' in 'Directory.UserConfig.props'" Condition="'$(FablePackageType)' == ''" />
<Error Text="Please set 'Authors' in 'Directory.UserConfig.props'" Condition="'$(Authors)' == ''" />
</Target>
</Project>