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:
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