gpt4 book ai didi

windows - Visual Studio 构建后 : keep console open?

转载 作者:可可西里 更新时间:2023-11-01 10:26:25 27 4
gpt4 key购买 nike

我的构建后事件有效,但在某些情况下,我很确定它在控制台窗口中显示错误。但是,由于窗口立即关闭,我无法阅读任何内容。

这是构建事件:

if $(ConfigurationName) == Release start xcopy /y "$(TargetDir)*.dll" "$(ProjectDir)../../bin"

基本上它将构建的 dll 复制到另一个目录。

有没有办法强制 start 调用的控制台窗口在我关闭之前保持打开状态?

最佳答案

我认为您想要的信息写在“输出”中( View > 输出或 Ctrl-W + O)。一切都运行后,该信息仍然是书面的/可用的。

例如,输出

echo Information on the post build event
some_non_existant_command

Information on the post build event
'some_non_existant_command' is not recognized as an internal or external command, operable program or batch file.

与错误列表 (Ctrl-W + E) 相比,它会更好地提示您出了什么问题,错误列表只会显示一些神秘的内容,例如 “...退出代码 9009”

所以,我的建议是,检查输出!

希望对您有所帮助。

关于windows - Visual Studio 构建后 : keep console open?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/15964854/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com