-
Notifications
You must be signed in to change notification settings - Fork 0
/
Common.targets
25 lines (19 loc) · 1.06 KB
/
Common.targets
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
<?xml version="1.0" encoding="utf-8"?>
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Import Project="NUnitProjects.targets" />
<Target Name="PrepareBuildProperties">
<ItemGroup>
<_BuildProperties Include="VersionSuffix=$(SemanticTag)" />
<_BuildProperties Include="PackageOutputPath=$(OutputDirectory)" />
<_BuildProperties Include="IncludeSymbols=true" />
</ItemGroup>
<ItemGroup>
<NugetProjects UndefineProperties="Version" />
<NugetProjects Condition="'%(NugetProjects.UseSemVer)' != 'true'" AdditionalProperties="VersionPrefix=$(Version)" />
<OctoPackProjects UndefineProperties="Version" />
<OctoPackProjects Condition="'%(OctoPackProjects.UseSemVer)' != 'true'" AdditionalProperties="VersionPrefix=$(Version)" />
<OutputBinaryProjects UndefineProperties="Version" />
<OutputBinaryProjects Condition="'%(OutputBinaryProjects.UseSemVer)' != 'true'" AdditionalProperties="VersionPrefix=$(Version)" />
</ItemGroup>
</Target>
</Project>