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>2020-12-31 13:20:46 +0300
committerGitHub <noreply@github.com>2020-12-31 13:20:46 +0300
commit752c927cf26a3c57190d46b3635de52cc49b203e (patch)
treeec1be33295834bf0897b8d254f2553b85f5fe6a4 /Directory.Build.targets
parent73b824d38e04001b09520637c33b3070a2606c5e (diff)
Allow incremental servicing of packages and more packaging infra cleanup (#46447)
* More packaging cleanup * Add incremental package servicing throughout the repo * Update dependencies to 6.0.0-beta.20630.3
Diffstat (limited to 'Directory.Build.targets')
-rw-r--r--Directory.Build.targets11
1 files changed, 10 insertions, 1 deletions
diff --git a/Directory.Build.targets b/Directory.Build.targets
index 764d12bb822..e84ae45d03b 100644
--- a/Directory.Build.targets
+++ b/Directory.Build.targets
@@ -1,4 +1,4 @@
-<Project InitialTargets="ErrorForMissingPackageDescription">
+<Project InitialTargets="ErrorForMissingPackageDescription;_OverridePackDependsOn">
<PropertyGroup>
<!--
For non-SDK projects that import this file and then import Microsoft.Common.targets,
@@ -53,4 +53,13 @@
Condition="'$(IsPackable)' == 'true' and '$(PackageDescription)' == ''">
<Error Text="Required property 'PackageDescription' is missing for $(MSBuildProjectName)." />
</Target>
+
+ <!-- <GeneratePackage /> controls if a package should be created by clearing out <PackDependsOn />. -->
+ <Target Name="_OverridePackDependsOn"
+ Condition="'$(IsPackable)' == 'true' and
+ '$(GeneratePackage)' != 'true'">
+ <PropertyGroup>
+ <PackDependsOn />
+ </PropertyGroup>
+ </Target>
</Project> \ No newline at end of file