We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 753c664 commit df30c92Copy full SHA for df30c92
1 file changed
Code/UsingMSBuildCopyOutputFileToFastDebug/Program.cs
@@ -47,7 +47,12 @@ static int Main(string[] args)
47
}
48
catch (Exception e)
49
{
50
+#if DEBUG
51
Logger.Error(e.ToString());
52
+#else
53
+ var msBuildException = new MSBuildException(e.Message, e);
54
+ msBuildException.ReportBuildError();
55
+#endif
56
return -1;
57
58
@@ -105,8 +110,6 @@ private static void CopyOutputFile(CopyOutputFileOptions copyOutputFileOptions)
105
110
safeOutputFileCopyTask.Execute();
106
111
107
112
108
-
109
113
/// <summary>
114
/// 获取准备运行的 Exe 的路径
115
/// </summary>
0 commit comments