-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathDirectory.Build.props
28 lines (24 loc) · 1.2 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
<Project>
<PropertyGroup>
<Authors>adriva</Authors>
<Company>Adriva LLC.</Company>
<Copyright>(c) 2020, Adriva LLC.</Copyright>
<RepositoryType>git</RepositoryType>
<RepositoryUrl>https://github.com/adriva/coreframework</RepositoryUrl>
<PackageProjectUrl>https://github.com/adriva/coreframework</PackageProjectUrl>
<RepositoryBranch>master</RepositoryBranch>
<PackageLicenseExpression>MIT</PackageLicenseExpression>
<langversion>latest</langversion>
</PropertyGroup>
<PropertyGroup>
<NET3 Condition="'$(dotnet)' == '3'">True</NET3>
<NET8 Condition="'$(dotnet)' == '8' Or '$(dotnet)' == ''">True</NET8>
<NugetVersionPrefix Condition="$(NET3) == 'True'">3.1</NugetVersionPrefix>
<NugetVersionPrefix Condition="$(NET8) == 'True'">8.0</NugetVersionPrefix>
<NugetOutputVersionPrefix Condition="$(NET3) == 'True'">3.3</NugetOutputVersionPrefix>
<NugetOutputVersionPrefix Condition="$(NET8) == 'True'">8.0</NugetOutputVersionPrefix>
</PropertyGroup>
<Target Name="WriteBuildInfo" AfterTargets="Build">
<Message Text="Built '$(MSBuildProjectName)' for version '$(NugetVersionPrefix)'" Importance="High" />
</Target>
</Project>