[Release/6.0]fix the package version for non-shipping csproj packages (#59369)
authorAnirudh Agnihotry <anirudhagnihotry098@gmail.com>
Tue, 21 Sep 2021 00:47:46 +0000 (17:47 -0700)
committerGitHub <noreply@github.com>
Tue, 21 Sep 2021 00:47:46 +0000 (17:47 -0700)
* fix the package version for non-shipping package

* use version prefix

eng/packaging.targets

index 7e2c79b..dc3c0eb 100644 (file)
@@ -31,7 +31,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>