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:
authorViktor Hofer <viktor.hofer@microsoft.com>2022-08-22 19:08:16 +0300
committergithub-actions <github-actions@github.com>2022-08-22 21:17:30 +0300
commitaa37894ece3f0b8834b0aba8e39a7a80af404d81 (patch)
tree891f1a0618544f21450b39d391a179893387015b
parenta14fcf5598deb018c864389fc24375d890207628 (diff)
Update Directory.Build.targetsbackport/pr-74353-to-release/7.0-rc1
-rw-r--r--src/mono/nuget/Directory.Build.targets8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/mono/nuget/Directory.Build.targets b/src/mono/nuget/Directory.Build.targets
index 32e2e4251e7..c3af51a7f58 100644
--- a/src/mono/nuget/Directory.Build.targets
+++ b/src/mono/nuget/Directory.Build.targets
@@ -1,5 +1,13 @@
<Project>
<UsingTask TaskName="GenerateFileFromTemplate" AssemblyFile="$(WorkloadTasksAssemblyPath)" />
<Import Project="..\Directory.Build.targets" />
+
+ <PropertyGroup>
+ <!-- Central place to set the versions of all mono pkgprojs. -->
+ <PackageVersion Condition="'$(PackageVersion)' == ''">$(ProductVersion)</PackageVersion>
+ <StableVersion Condition="'$(StabilizePackageVersion)' == 'true' and '$(StableVersion)' == ''">$(PackageVersion)</StableVersion>
+ <StableVersion Condition="'$(IsShippingPackage)' != 'true' and '$(MSBuildProjectExtension)' == '.pkgproj'" />
+ </PropertyGroup>
+
<Import Project="$(NuGetPackageRoot)\microsoft.dotnet.build.tasks.packaging\$(MicrosoftDotNetBuildTasksPackagingVersion)\build\Microsoft.DotNet.Build.Tasks.Packaging.targets" />
</Project>