Skip to content

Commit

Permalink
Add GeneratePackage property to pkgproj infra (#6728)
Browse files Browse the repository at this point in the history
* Add GeneratePackage property to pkgproj infra

<GeneratePackage /> controls if a package should be created when the pkgproj is invoked. This allows to filter at project level instead of at traversal.

* Update Packaging.targets
  • Loading branch information
ViktorHofer committed Dec 30, 2020
1 parent a699761 commit a81310d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
<?xml version="1.0" encoding="utf-8"?>
<Project>
<PropertyGroup>
<IsPackable Condition="'$(MSBuildProjectExtension)' == '.pkgproj'">true</IsPackable>
<PropertyGroup Condition="'$(MSBuildProjectExtension)' == '.pkgproj'">
<IsPackable>true</IsPackable>
<!-- Additional property which no-ops the pkgproj entrypoint targets for more flexibility during servicing. -->
<GeneratePackage Condition="'$(GeneratePackage)' == ''">true</GeneratePackage>
</PropertyGroup>
</Project>
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@

<!-- Redefine build to just create the NuSpec only, we'll create the package during ArcProjects phase -->
<Target Name="Build"
Condition="'$(GeneratePackage)' == 'true'"
DependsOnTargets="$(BuildDependsOn)">

<Message Condition="'$(ShouldCreatePackage)' == 'true'"
Expand Down

0 comments on commit a81310d

Please sign in to comment.