-
-
Notifications
You must be signed in to change notification settings - Fork 39
/
Copy pathDirectory.Build.props
43 lines (43 loc) · 2.22 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
39
40
41
42
43
<Project>
<!-- 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>
<!-- Make all the projects use the highest warning level -->
<WarningLevel>5</WarningLevel>
<AccelerateBuildsInVisualStudio>true</AccelerateBuildsInVisualStudio>
<EmbedUntrackedSources>true</EmbedUntrackedSources>
</PropertyGroup>
<!-- Packages common to all the projects excepts build project -->
<ItemGroup Condition="'$(PackageId)'!='EasyBuild'">
<!-- Reproducible builds + SourceLink supports -->
<PackageReference Include="DotNet.ReproducibleBuilds" PrivateAssets="All"/>
<!-- Depends on the same version of FSharp.Core for all the projects -->
<!-- We don't use any feature related to FSharp.Core 5 so we force to use a lower one -->
<PackageReference Include="FSharp.Core" />
</ItemGroup>
<!-- NuGet Metadata -->
<PropertyGroup>
<PackageProjectUrl>https://github.com/thoth-org/Thoth.Json</PackageProjectUrl>
<Packagelicense>https://github.com/thoth-org/Thoth.Json/blob/master/LICENSE.md</Packagelicense>
<RepositoryUrl>https://github.com/thoth-org/Thoth.Json</RepositoryUrl>
<PackageLicenseFile>LICENSE.txt</PackageLicenseFile>
<PackageReadmeFile>README.md</PackageReadmeFile>
<GenerateDocumentationFile>true</GenerateDocumentationFile>
<Authors>Maxime Mangel</Authors>
</PropertyGroup>
<ItemGroup>
<None Include="$(MSBuildThisFileDirectory)/LICENSE.txt" Pack="true" PackagePath="$(PackageLicenseFile)"/>
<None Include="$(MSBuildThisFileDirectory)\README.md" Pack="true" PackagePath="\"/>
</ItemGroup>
</Project>