Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/dotnet/runtime.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnirudh Agnihotry <anirudhagnihotry098@gmail.com>2021-08-12 20:29:20 +0300
committerGitHub <noreply@github.com>2021-08-12 20:29:20 +0300
commit4684a1dbab50ea759eaf970302fc9c1f7007bbc2 (patch)
tree9abc77fd8b5c8bc454f4315dde3f858b489908a3 /eng/packaging.targets
parenta4894885a534c3c9091fd7dedae18d2686c6b844 (diff)
Automatic calculate the assembly and package version in servicing (#57158)
* automatically update the assembly version * address feedback * move IsAspNetCoreApp to packaging.targets * make assemblyintef pack private, update header and instructions on building the package in servicing * fixes the allconfig leg * update the docs * Update docs/project/library-servicing.md Co-authored-by: Viktor Hofer <viktor.hofer@microsoft.com> Co-authored-by: Viktor Hofer <viktor.hofer@microsoft.com>
Diffstat (limited to 'eng/packaging.targets')
-rw-r--r--eng/packaging.targets9
1 files changed, 9 insertions, 0 deletions
diff --git a/eng/packaging.targets b/eng/packaging.targets
index 8b93352840b..f7db8e51f9d 100644
--- a/eng/packaging.targets
+++ b/eng/packaging.targets
@@ -29,6 +29,15 @@
<UseIntellisenseDocumentationFile Condition="'$(UseIntellisenseDocumentationFile)' == '' and Exists('$(LibIntellisenseDocumentationFilePath)')">true</UseIntellisenseDocumentationFile>
</PropertyGroup>
+ <PropertyGroup Condition="'$(ServicingVersion)' != ''">
+ <!-- Always update the package version in servicing. -->
+ <PackageVersion>$(MajorVersion).$(MinorVersion).$(ServicingVersion)</PackageVersion>
+ <IsWindowsDesktop Condition="$(WindowsDesktopCoreAppLibrary.Contains('$(AssemblyName);'))">true</IsWindowsDesktop>
+ <_AssemblyInTargetingPack Condition="'$(IsNETCoreAppSrc)' == 'true' or '$(IsAspNetCoreApp)' == 'true' or '$(IsWindowsDesktop)' == 'true'">true</_AssemblyInTargetingPack>
+ <!-- Assembly version do not get updated in non-netfx ref pack assemblies. -->
+ <AssemblyVersion Condition="'$(_AssemblyInTargetingPack)' != 'true' or '$(TargetFrameworkIdentifier)' == '.NETFramework'">$(MajorVersion).$(MinorVersion).0.$(ServicingVersion)</AssemblyVersion>
+ </PropertyGroup>
+
<ItemGroup Condition="'$(EnablePackageValidation)' == 'true'">
<PackageReference Include="Microsoft.DotNet.PackageValidation" Version="$(MicrosoftDotNetPackageValidationVersion)" PrivateAssets="all" IsImplicitlyDefined="true" />
<!-- TODO: Remove when the SDK is upgraded to RC1. -->