-
-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathTurnerSoftware.BuildVersioning.Tool.csproj
More file actions
42 lines (35 loc) · 2.01 KB
/
TurnerSoftware.BuildVersioning.Tool.csproj
File metadata and controls
42 lines (35 loc) · 2.01 KB
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
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<AssemblyName>TurnerSoftware.BuildVersioning.Tool</AssemblyName>
<Title>TurnerSoftware.BuildVersioning.Tool</Title>
<Description>Simple build versioning for .NET, powered by Git tags (CLI Tool)</Description>
<PackageTags>$(PackageBaseTags)</PackageTags>
<Authors>James Turner</Authors>
</PropertyGroup>
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFrameworks>net6.0;net8.0</TargetFrameworks>
<BuildVersioningLogLevel>high</BuildVersioningLogLevel>
<RootNamespace>TurnerSoftware.BuildVersioning.Tool</RootNamespace>
<PackAsTool>true</PackAsTool>
<ToolCommandName>buildversioning</ToolCommandName>
</PropertyGroup>
<PropertyGroup>
<_BuildVersioningToolRuntime>$(TargetFramework)</_BuildVersioningToolRuntime>
<BuildVersioningToolBasePath>$(MSBuildThisFileDirectory)bin/$(Configuration)</BuildVersioningToolBasePath>
<SelfHostedBuildVersioning Condition="$(DesignTimeBuild) != 'true' AND $(SkipBuildVersioning) != 'true'">true</SelfHostedBuildVersioning>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="System.CommandLine" Version="2.0.6" PrivateAssets="All" />
</ItemGroup>
<ItemGroup>
<PackageReference Update="Microsoft.SourceLink.GitHub" Version="8.0.0" />
</ItemGroup>
<!-- Self-hosting Support -->
<Import Project="../TurnerSoftware.BuildVersioning/build/TurnerSoftware.BuildVersioning.targets" Condition="$(SelfHostedBuildVersioning) == 'true'" />
<Target Name="_SelfHostedBuildVersioning" BeforeTargets="BeforeBuild" Condition="$(SelfHostedBuildVersioning) == 'true' AND !Exists($(BuildVersioningToolPath))">
<Message Importance="high" Text="Build Versioning Self-Hosting ($(TargetFramework)): Started" />
<Exec Command="dotnet build TurnerSoftware.BuildVersioning.Tool.csproj -c $(Configuration) -f $(TargetFramework) -v quiet --nologo /p:SkipBuildVersioning=true" StandardOutputImportance="low"></Exec>
<Message Importance="high" Text="Build Versioning Self-Hosting ($(TargetFramework)): Complete" />
</Target>
</Project>