Skip to content

Commit

Permalink
Move IncludePreReleaseLabelInPackageVersion property evaluation out o…
Browse files Browse the repository at this point in the history
…f the target (#15256)
  • Loading branch information
NikolaMilosavljevic authored Nov 19, 2024
1 parent c1852b9 commit 75efe2c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,12 @@
<CombinedInstallerExtension Condition="'$(TargetRuntimeOS)' != 'win'">$(InstallerExtension)</CombinedInstallerExtension>
</PropertyGroup>

<PropertyGroup>
<IncludePreReleaseLabelInPackageVersion Condition="'$(DotNetFinalVersionKind)' != 'release'">true</IncludePreReleaseLabelInPackageVersion>
<IncludePreReleaseLabelInPackageVersion Condition="'$(SuppressFinalPackageVersion)' == 'true'">true</IncludePreReleaseLabelInPackageVersion>
<IncludePreReleaseLabelInPackageVersion Condition="'$(IsShipping)' != 'true'">true</IncludePreReleaseLabelInPackageVersion>
</PropertyGroup>

<PropertyGroup Condition="'$(GenerateDeb)' == 'true'">
<InstallerPackageVersion Condition="'$(IncludePreReleaseLabelInPackageVersion)' == 'true'">$(VersionPrefix)~$(VersionSuffix)</InstallerPackageVersion>
</PropertyGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -84,15 +84,7 @@
<_GlobalPropertiesToRemoveForPublish Include="$(_GlobalPropertiesToRemoveForPublish)" />
</ItemGroup>

<Target Name="_GetVersionInfo">
<PropertyGroup>
<IncludePreReleaseLabelInPackageVersion Condition="'$(DotNetFinalVersionKind)' != 'release'">true</IncludePreReleaseLabelInPackageVersion>
<IncludePreReleaseLabelInPackageVersion Condition="'$(SuppressFinalPackageVersion)' == 'true'">true</IncludePreReleaseLabelInPackageVersion>
<IncludePreReleaseLabelInPackageVersion Condition="'$(IsShipping)' != 'true'">true</IncludePreReleaseLabelInPackageVersion>
</PropertyGroup>
</Target>

<Target Name="_GetProductBrandName" DependsOnTargets="_GetVersionInfo">
<Target Name="_GetProductBrandName">
<PropertyGroup
Condition="
'$(ReleaseBrandSuffix)' == '' and
Expand Down

0 comments on commit 75efe2c

Please sign in to comment.