Skip to content

Commit 3f174b1

Browse files
authored
Merge pull request #14 from dotnet-campus/t/lindexi
修复 CBB 项目默认构建不通过
2 parents f62a6f5 + 3fc3e75 commit 3f174b1

File tree

1 file changed

+2
-2
lines changed
  • Code/UsingMSBuildCopyOutputFileToFastDebug

1 file changed

+2
-2
lines changed

Code/UsingMSBuildCopyOutputFileToFastDebug/Program.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -167,13 +167,13 @@ private static void CopyOutputFile(CopyOutputFileOptions copyOutputFileOptions)
167167
return new FileInfo(launchMainProjectExecutablePath!);
168168
}
169169

170-
throw new ArgumentException($"没有从 MainProjectExecutablePath 和 LaunchSettings 获取到输出的文件夹");
170+
Logger.Warning($"[UsingMSBuildCopyOutputFileToFastDebug] 没有从 MainProjectExecutablePath 和 LaunchSettings 获取到输出的文件夹");
171+
return null;
171172
}
172173

173174
private static IMSBuildLogger Logger { get; } = new MSBuildConsoleLogger();
174175
}
175176

176-
177177
[Verb("CopyOutputFile")]
178178
public class CopyOutputFileOptions
179179
{

0 commit comments

Comments
 (0)