Skip to content

Commit b0249cf

Browse files
authored
If PackFolder is specified, assume IsPackable=true
Seems like a more sensible default. You can set IsPackable to false if this default behavior isn't appropriate. Perhaps this default value behavior should be ported to NuGetizer itself.
1 parent 3f294a1 commit b0249cf

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

src/Directory.Build.targets

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,9 @@
55
<DefineConstants>CI;$(DefineConstants)</DefineConstants>
66
</PropertyGroup>
77

8-
<PropertyGroup Condition="'$(IsPackable)' == '' and '$(PackAsTool)' == 'true'">
9-
<IsPackable>true</IsPackable>
8+
<PropertyGroup Condition="'$(IsPackable)' == ''">
9+
<IsPackable Condition="'$(PackAsTool)' == 'true'">true</IsPackable>
10+
<IsPackable Condition="'$(PackFolder)' != ''">true</IsPackable>
1011
</PropertyGroup>
1112

1213
<PropertyGroup Condition="'$(IsPackable)' == ''">

0 commit comments

Comments
 (0)