8000 If PackAsTool=true, default IsPackable=true, for obvious reasons · devlooped/oss@fde1f6f · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Commit fde1f6f

Browse files
authored
If PackAsTool=true, default IsPackable=true, for obvious reasons
We were defaulting it to false in that case, as long as PackageId was not provided. This was counter-intuitve.
1 parent 9db26e2 commit fde1f6f

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/Directory.Build.targets

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@
55
<DefineConstants>CI;$(DefineConstants)</DefineConstants>
66
</PropertyGroup>
77

8+
<PropertyGroup Condition="'$(IsPackable)' == '' and '$(PackAsTool)' == 'true'">
9+
<IsPackable>true</IsPackable>
10+
</PropertyGroup>
11+
812
<PropertyGroup Condition="'$(IsPackable)' == ''">
913
<!-- The Sdks\NuGet.Build.Tasks.Pack\build\NuGet.Build.Tasks.Pack.targets unconditionally sets
1014
PackageId=AssemblyName if no PackageId is provided, and then defaults IsPackable=true if

0 commit comments

Comments
 (0)
0