Skip to content

Commit

Permalink
Directory.Build.targets: use GitVersioning by default on Azure DevOps…
Browse files Browse the repository at this point in the history
… so when J2N is built as a dependency on the Xamarin test projects the version number will be generated.
  • Loading branch information
NightOwl888 committed Oct 15, 2023
1 parent 6ae8151 commit 8863567
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Directory.Build.targets
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,8 @@
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="$(MicrosoftSourceLinkGitHubPackageReferenceVersion)" PrivateAssets="All"/>
</ItemGroup>

<ItemGroup Condition=" '$(SkipGitVersioning.ToLower())' != 'true' And '$(TF_BUILD.ToLower())' != 'true' ">
<!-- J2N will always use semantic versioning, there is no need for a 4 component version number so we don't always have to skip this on Azure DevOps -->
<ItemGroup Condition=" '$(SkipGitVersioning.ToLower())' != 'true' ">
<PackageReference Include="Nerdbank.GitVersioning" Version="$(NerdBankGitVersioningPackageReferenceVersion)" PrivateAssets="All" />
</ItemGroup>

Expand Down

0 comments on commit 8863567

Please sign in to comment.