Skip to content

Commit b9d40b7

Browse files
committed
[Build] Don't build nuget package if no push
1 parent f354a72 commit b9d40b7

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

Build/SharpDX.build

+7-3
Original file line numberDiff line numberDiff line change
@@ -46,11 +46,15 @@
4646
<Target Name="Package">
4747
<Message Importance="High" Text="Building SharpDX $(SharpDXAssemblyVersion)"/>
4848
<CallTarget Targets="Build"/>
49-
<CallTarget Targets="Nuget"/>
5049
<CallTarget Targets="ZipBuild"/>
51-
<CallTarget Condition="'$(SharpDXNugetPush)' == 'true'" Targets="NugetPush"/>
50+
<CallTarget Condition="'$(SharpDXNugetPush)' == 'true'" Targets="NugetAndPush"/>
5251
</Target>
53-
52+
53+
<Target Name="NugetAndPush">
54+
<CallTarget Targets="Nuget"/>
55+
<CallTarget Targets="NugetPush"/>
56+
</Target>
57+
5458
<Target Name="Build">
5559
<!--Build all targets / platforms-->
5660
<Exec Command="RMDIR /Q /S $(SharpDXRepo)\Bin"/>

0 commit comments

Comments
 (0)