Skip to content

Commit 0131076

Browse files
committed
修复 CBB 项目默认构建不通过
将异常修改为警告即可,因为调试的路径也许是本机的,因此不推送到 Git 仓库,但是依然在仓库安装了此库。拉下来的开发者将构建不通过
1 parent f62a6f5 commit 0131076

File tree

1 file changed

+1
-2
lines changed
  • Code/UsingMSBuildCopyOutputFileToFastDebug

1 file changed

+1
-2
lines changed

Code/UsingMSBuildCopyOutputFileToFastDebug/Program.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -167,13 +167,12 @@ 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 获取到输出的文件夹");
171171
}
172172

173173
private static IMSBuildLogger Logger { get; } = new MSBuildConsoleLogger();
174174
}
175175

176-
177176
[Verb("CopyOutputFile")]
178177
public class CopyOutputFileOptions
179178
{

0 commit comments

Comments
 (0)