Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix version calculation when using ServicingVersion for dependencies …
…and current package
- Loading branch information
Showing
3 changed files
with
29 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
<Project> | ||
|
||
<!-- We need to set these properties before the arcade Version.BeforeCommonTargets.targets are imported --> | ||
<PropertyGroup Condition="'$(PreReleaseVersionLabel)' == 'servicing' and '$(IsPackable)' == 'true'"> | ||
<!-- If no servicing version is set we need to default to 0 in order for dependency versions to | ||
be calculated propertly, if we don't set it to 0, we would get the dependency version using the | ||
product Patch Version --> | ||
<ServicingVersion Condition="'$(ServicingVersion)' == ''">0</ServicingVersion> | ||
<!-- Always update the patch version in servicing so that arcade sets the correct package version. --> | ||
<PatchVersion>$(ServicingVersion)</PatchVersion> | ||
<_IsWindowsDesktopApp Condition="$(WindowsDesktopCoreAppLibrary.Contains('$(AssemblyName);'))">true</_IsWindowsDesktopApp> | ||
<_IsAspNetCoreApp Condition="$(AspNetCoreAppLibrary.Contains('$(AssemblyName);'))">true</_IsAspNetCoreApp> | ||
<_AssemblyInTargetingPack Condition="('$(IsNETCoreAppSrc)' == 'true' or '$(_IsAspNetCoreApp)' == 'true' or '$(_IsWindowsDesktopApp)' == 'true') and '$(TargetFrameworkIdentifier)' != '.NETFramework'">true</_AssemblyInTargetingPack> | ||
<!-- Assembly version do not get updated in non-netfx ref pack assemblies. --> | ||
<AssemblyVersion Condition="'$(_AssemblyInTargetingPack)' != 'true'">$(MajorVersion).$(MinorVersion).0.$(ServicingVersion)</AssemblyVersion> | ||
</PropertyGroup> | ||
</Project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters