[main] [Release/6.0]fix the package version for non-shipping csproj packages (#59388)
authorgithub-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Tue, 21 Sep 2021 17:27:35 +0000 (10:27 -0700)
committerGitHub <noreply@github.com>
Tue, 21 Sep 2021 17:27:35 +0000 (10:27 -0700)
* fix the package version for non-shipping package

* use version prefix

Co-authored-by: Anirudh Agnihotry <anagniho@microsoft.com>
eng/packaging.targets

index b601134..8bd6ccb 100644 (file)
@@ -29,7 +29,7 @@
 
   <PropertyGroup Condition="'$(ServicingVersion)' != ''">
     <!-- Always update the package version in servicing. -->
-    <PackageVersion>$(MajorVersion).$(MinorVersion).$(ServicingVersion)</PackageVersion>
+    <VersionPrefix>$(MajorVersion).$(MinorVersion).$(ServicingVersion)</VersionPrefix>
     <_IsWindowsDesktopApp Condition="$(WindowsDesktopCoreAppLibrary.Contains('$(AssemblyName);'))">true</_IsWindowsDesktopApp>
     <_IsAspNetCoreApp Condition="$(AspNetCoreAppLibrary.Contains('$(AssemblyName);'))">true</_IsAspNetCoreApp>
     <_AssemblyInTargetingPack Condition="'$(IsNETCoreAppSrc)' == 'true' or '$(_IsAspNetCoreApp)' == 'true' or '$(_IsWindowsDesktopApp)' == 'true'">true</_AssemblyInTargetingPack>