Files
TTT/Versioning/Versioning.csproj
MSWS d92996d11e ci: Prevent CI execution of GitVersion generation +semver:minor
Add condition to GenerateGitVersionInformation target in Versioning.csproj

- Prevent execution in continuous integration environments by adding a condition to the GenerateGitVersionInformation target in Versioning.csproj.
2025-08-06 22:31:06 -07:00

13 lines
485 B
XML

<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net8.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
</PropertyGroup>
<Target Name="GenerateGitVersionInformation" BeforeTargets="BeforeCompile" Condition="'$(OS)' != 'Windows_NT' And '$(CI)' != 'true'">
<Exec Command="dotnet-gitversion '$(ProjectDir)' &gt; '$(ProjectDir)/../gitversion.json'"/>
</Target>
</Project>