如何在Visual Studio 2008生成中打印SET命令?

时间:2022-04-03 23:15:23

I want to see all of the current environment variables during a build. I'd like to do this in the pre or post-build steps if possible because I don't want to edit the Targets file. This could print to the Output window or to a file. I've tried a number of different ways without success. I'm using Visual Studio 2008. Thanks!

我想在构建期间查看所有当前环境变量。如果可能的话,我想在构建前或构建后的步骤中执行此操作,因为我不想编辑Targets文件。这可以打印到“输出”窗口或文件。我尝试了许多不同的方法而没有成功。我正在使用Visual Studio 2008.谢谢!

1 个解决方案

#1


If you just keyin set in the Post Build event, it displays the environment variables in the output window.

如果只是在Post Build事件中设置了keyin,它会在输出窗口中显示环境变量。

#1


If you just keyin set in the Post Build event, it displays the environment variables in the output window.

如果只是在Post Build事件中设置了keyin,它会在输出窗口中显示环境变量。