Skip to content

Commit dead99e

Browse files
committed
Fixed crashing when npl was missing.
1 parent 95becb8 commit dead99e

3 files changed

Lines changed: 10 additions & 4 deletions

File tree

Nopipeline/Nopipeline.Task/Nopipeline.Task.targets

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,13 @@
55
</ItemGroup>
66

77
<Target Name="Nopipeline">
8-
<Exec Command="dotnet &quot;$(MSBuildThisFileDirectory)/../tools/netcoreapp3.1/any/npl.dll&quot; &quot;%(NPLContentReferences.FullPath)&quot;" />
9-
<Exec Command="dotnet &quot;$(MSBuildThisFileDirectory)/../tools/netcoreapp3.1/any/npl.dll&quot; &quot;%(MGCBContentReferences.FullPath)&quot;" />
8+
<Exec
9+
Command="dotnet &quot;$(MSBuildThisFileDirectory)/../tools/netcoreapp3.1/any/npl.dll&quot; &quot;%(NPLContentReferences.FullPath)&quot;"
10+
Condition="'%(NPLContentReferences.FullPath)' != ''"
11+
/>
12+
<Exec
13+
Command="dotnet &quot;$(MSBuildThisFileDirectory)/../tools/netcoreapp3.1/any/npl.dll&quot; &quot;%(MGCBContentReferences.FullPath)&quot;"
14+
Condition="'%(MGCBContentReferences.FullPath)' != ''"
15+
/>
1016
</Target>
1117
</Project>

Nopipeline/Nopipeline/Program.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ public static void Main(string[] args)
1616
{
1717

1818
// Print help information if parameter was not provided.
19-
if (args.Length != 1)
19+
if (args.Length != 1 || args[0] == "")
2020
{
2121
PrintHelp();
2222
return;

Nuget.props

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<Project>
22
<PropertyGroup>
3-
<Version>2.1.4</Version>
3+
<Version>2.1.5</Version>
44
<Description>A Content Pipeline addon for Monogame which fully replaces Pipeline UI.</Description>
55
<Authors>Martenfur</Authors>
66
<Company>Chai Foxes</Company>

0 commit comments

Comments
 (0)