Skip to content

Commit

Permalink
MSBuild Task does not support nullable
Browse files Browse the repository at this point in the history
  • Loading branch information
neuecc committed Jan 7, 2020
1 parent 4781068 commit a34e2d4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/MagicOnion.MSBuild.Tasks/MagicOnionGenerator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ public class MagicOnionGenerator : Microsoft.Build.Utilities.Task

public string Namespace { get; set; }

public bool? UnuseUnityAttr { get; set; }
public bool UnuseUnityAttr { get; set; } = false;

public override bool Execute()
{
Expand All @@ -27,7 +27,7 @@ public override bool Execute()
.GenerateFileAsync(
Input,
Output,
UnuseUnityAttr ?? false,
UnuseUnityAttr,
Namespace ?? "MagicOnion",
ConditionalSymbol
)
Expand Down

0 comments on commit a34e2d4

Please sign in to comment.