Skip to content

Commit

Permalink
Merge pull request #12 from dotnet-campus/t/lvyi/ex-er
Browse files Browse the repository at this point in the history
修复编译错误无法输出成编译错误的问题
  • Loading branch information
lindexi authored Aug 19, 2020
2 parents 7fb41cd + 9060ad6 commit 7d1fb7a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/dotnetCampus.MSBuildUtils/MSBuildException.cs
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ protected MSBuildException(SerializationInfo serializationInfo, StreamingContext
/// </summary>
public void ReportBuildError()
{
Console.WriteLine(MSBuildMessage);
MSBuildMessage.Error();
}
}
}
2 changes: 1 addition & 1 deletion src/dotnetCampus.MSBuildUtils/MSBuildMessage.cs
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ public string ToString(MessageLevel level)
/// <summary>
/// 构造一个用于输出到 MSBuild 控制台的消息。
/// </summary>
/// <returns>构造好的 MSBuild 控制台消息。可直接使用 Console.WriteLine 输出以产生 MSBuild 编译效果。</returns>
/// <returns>用于输出到 MSBuild 控制台的消息;没有警告和错误效果。</returns>
public override string ToString() => ToString(MessageLevel.Message);
}
}

0 comments on commit 7d1fb7a

Please sign in to comment.