forked from neuecc/Utf8Json
-
Notifications
You must be signed in to change notification settings - Fork 4
/
Directory.Build.props
43 lines (35 loc) · 2.13 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>
<!-- All projects will include the defined versions automatically -->
<Import Project="Versions.props" />
<PropertyGroup Label="Versions">
<!-- Default version if not specified in dotnet command -->
<PackageVersion Condition="'$(PackageVersion)' == ''">1.4.0</PackageVersion>
<!-- Parse out parts of the version -->
<MajorVersion Condition="'$(MajorVersion)' == ''">$(PackageVersion.Split('.')[0])</MajorVersion>
<MinorVersion Condition="'$(MinorVersion)' == ''">$(PackageVersion.Split('.')[1])</MinorVersion>
<Patch Condition="'$(Patch)' == ''">$(PackageVersion.Split('-')[0].Split('.')[2])</Patch>
<BuildNumber Condition="'$(BuildNumber)' == ''">0</BuildNumber>
<VersionPrefix Condition="'$(VersionPrefix)' == ''">$(MajorVersion).$(MinorVersion).$(Patch)</VersionPrefix>
<VersionSuffix Condition="'$(VersionSuffix)' == '' AND $(PackageVersion.Contains('-'))">$(PackageVersion.Split('-')[1])</VersionSuffix>
<AssemblyVersion Condition="'$(AssemblyVersion)' == ''">$(VersionPrefix).$(BuildNumber)</AssemblyVersion>
<FileVersion Condition="'$(FileVersion)' == ''">$(VersionPrefix).$(BuildNumber)</FileVersion>
</PropertyGroup>
<!-- Common NuGet properties -->
<!-- Reference: https://docs.microsoft.com/en-us/nuget/reference/msbuild-targets#pack-target -->
<PropertyGroup>
<Authors>neuecc</Authors>
<Owners>neuecc</Owners>
<PackageLicenseFile>LICENSE</PackageLicenseFile>
<PackageRequireLicenseAcceptance>false</PackageRequireLicenseAcceptance>
<PackageTags>Json, Serialization, Formatter, Serializer, Unity, Xamarin</PackageTags>
<RepositoryUrl>https://github.com/Cryptisk/Utf8Json</RepositoryUrl>
<PackageProjectUrl>https://github.com/Cryptisk/Utf8Json</PackageProjectUrl>
<!-- <Copyright></Copyright> -->
<!-- <PackageIconUrl></PackageIconUrl> -->
<!-- By default none of the projects are packable by "dotnet pack". Packable projects must set it to true! -->
<IsPackable>false</IsPackable>
</PropertyGroup>
<ItemGroup>
<None Include="$(MSBuildThisFileDirectory)\LICENSE" Pack="true" Visible="false" PackagePath="" />
</ItemGroup>
</Project>