如何将编译错误输入到文本文件中 [英] How to get compilation errors in to a textfile
本文介绍了如何将编译错误输入到文本文件中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
嗨..
我正在尝试将编译错误读入文本文件...如何将编译器错误读入文本文件...任何人可以帮助
Hi..
I am trying to read compilation errors into a text file...how to read the compiler errors into a text file... anybody can help
推荐答案
你可以用C ++来做,但你不能用C#做这件事: http://msdn.microsoft.com/en-us/library/jj651643.aspx [ ^ ]
在Visual Studio IDE中构建项目后,可以在输出窗口中查看有关该构建的信息。通过使用此信息,您可以对构建失败进行故障排除。对于C ++项目,您还可以查看相同的信息在.txt文件中自动创建和保存。对于托管代码项目,您可以将输出窗口中的信息复制并粘贴到.txt文件中并自行保存。
You can do it with C++, but you can't do it with C# apparently: http://msdn.microsoft.com/en-us/library/jj651643.aspx[^]
"After you build a project in the Visual Studio IDE, you can view information about that build in the Output window. By using this information, you can, for example, troubleshoot a build failure. For C++ projects, you can also view the same information in a .txt file that's created and saved automatically. For managed-code projects, you can copy and paste the information from the Output window into a .txt file and save it yourself."
>
这篇关于如何将编译错误输入到文本文件中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文