简体   繁体   English

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

[英]How do I print a SET command in a Visual Studio 2008 build?

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. 如果可能的话,我想在构建前或构建后步骤中执行此操作,因为我不想编辑Targets文件。 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! 我正在使用Visual Studio2008。谢谢!

如果仅在“生成后事件”中键入设置,它将在输出窗口中显示环境变量。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM