更新时间:2023-12-05 12:46:34
您可以使用>
重定向Visual Studio运行的命令的输出。通过在解决方案资源管理器中选择项目并单击PROJECT-> Properties-> Configuration Properties-> Debugging,将其添加到命令参数中。然后输入>输出.txt
进入命令参数。运行应用程序后,该文件将显示在工作目录中 - 默认情况下与.sln文件的目录相同。
You can use >
to redirect the output of the command run by Visual Studio. Add it to the command arguments by selecting your project in the solution explorer and clicking PROJECT->Properties->Configuration Properties->Debugging. Then enter > output.txt
into the Command Arguments. After you run your application, the file will appear in the Working Directory - which by default is the same directory as your .sln files.