32 строки
1.4 KiB
XML
32 строки
1.4 KiB
XML
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
|
<ItemGroup>
|
|
<PackageReference Include="GitInfo" Version="2.1.2" PrivateAssets="all" />
|
|
</ItemGroup>
|
|
<PropertyGroup>
|
|
<GitThisAssembly>false</GitThisAssembly>
|
|
<GitDefaultBranch>main</GitDefaultBranch>
|
|
</PropertyGroup>
|
|
|
|
<Target Name="SetVersion" BeforeTargets="GetAssemblyVersion;GetPackageVersion" DependsOnTargets="GitVersion">
|
|
<PropertyGroup>
|
|
<Version>$(GitSemVerMajor).$(GitSemVerMinor).$(GitSemVerPatch)</Version>
|
|
<InformationalVersion>$(Version); git-rev-head:$(GitCommit); git-branch:$(GitBranch)</InformationalVersion>
|
|
</PropertyGroup>
|
|
</Target>
|
|
|
|
<Import
|
|
Project="$([System.IO.Path]::GetDirectoryName($(MSBuildThisFileDirectory))).override.targets"
|
|
Condition=" Exists('$([System.IO.Path]::GetDirectoryName($(MSBuildThisFileDirectory))).override.targets') "
|
|
/>
|
|
|
|
<!-- NuGet Dependencies -->
|
|
<ItemGroup>
|
|
<PackageReference Update="Microsoft.NET.Test.Sdk" Version="17.5.0-preview-20221003-04" />
|
|
<PackageReference Update="Microsoft.SourceLink.GitHub" Version="1.1.1" />
|
|
<PackageReference Update="Microsoft.VisualStudioEng.MicroBuild.Core" Version="1.0.0" />
|
|
<PackageReference Update="nunit" Version="3.13.2" />
|
|
<PackageReference Update="NUnit3TestAdapter" Version="4.0.0" />
|
|
</ItemGroup>
|
|
|
|
</Project>
|