Only increment build number on debug builds

This commit is contained in:
Michael Bucari-Tovo 2022-06-25 17:06:28 -06:00
parent d48a74912a
commit a8987cf1d3
5 changed files with 7 additions and 6 deletions

View file

@ -3,7 +3,7 @@
<PropertyGroup>
<TargetFramework>net6.0-windows</TargetFramework>
<EnablePreviewFeatures>True</EnablePreviewFeatures>
<Version>8.1.4.16</Version>
<Version>8.1.4.30</Version>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Octokit" Version="0.51.0" />
@ -19,6 +19,6 @@
<DebugType>embedded</DebugType>
</PropertyGroup>
<Target Name="PreBuild" BeforeTargets="PreBuildEvent">
<Exec Command="dotnet bump-version revision AppScaffolding.csproj" />
<Exec Command="if $(Configuration) == Debug (&#xD;&#xA;dotnet bump-version revision AppScaffolding.csproj&#xD;&#xA;)" />
</Target>
</Project>