mirror of
https://github.com/MSWS/TTT.git
synced 2025-12-05 22:20:25 -08:00
- Refactor `Directory.Build.props`: - Add blank line between `<ItemGroup>` elements for clarity. - Remove redundant condition from `GitVersion.MsBuild` package reference. - Update `GenerateGitVersionInformation` target to execute `BeforeCompile` instead of `BeforeBuild`. - Replace `<PropertyGroup>` elements with explicit `<Exec>` commands in the `GenerateGitVersionInformation` target. - Modify `<Exec>` command syntax for consistency with other entries.
23 lines
920 B
XML
23 lines
920 B
XML
<Project>
|
|
<ItemGroup>
|
|
<PackageReference Include="CounterStrikeSharp.API" Version="1.0.328" />
|
|
<PackageReference Include="System.Reactive" Version="6.0.1" />
|
|
</ItemGroup>
|
|
|
|
<ItemGroup Condition="'$(OS)' == 'Windows_NT'">
|
|
<PackageReference Include="GitVersion.MsBuild" Version="6.3.0">
|
|
<PrivateAssets>all</PrivateAssets>
|
|
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
|
|
</PackageReference>
|
|
</ItemGroup>
|
|
|
|
<ItemGroup Condition="'$(OS)' != 'Windows_NT'">
|
|
<Compile Include="../GitVersionInformation.g.cs" />
|
|
</ItemGroup>
|
|
|
|
<Target Name="GenerateGitVersionInformation" BeforeTargets="BeforeCompile" Condition="'$(OS)' != 'Windows_NT'">
|
|
<Exec Command="dotnet-gitversion '$(ProjectDir)' > '$(ProjectDir)/gitversion.json'" />
|
|
<Exec Command="dotnet run --project 'Versioning/GenerateGitVersion.csproj'" />
|
|
</Target>
|
|
</Project>
|