main
<Project> <ItemGroup> <PackageReference Include="Nerdbank.GitVersioning" Condition="!Exists('packages.config')"> <PrivateAssets>all</PrivateAssets> </PackageReference> </ItemGroup> </Project>