如何在Visual Studio 2012中设置环境变量? [英] How to set environment variables in Visual Studio 2012?
本文介绍了如何在Visual Studio 2012中设置环境变量?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何在Visual Studio 2012中设置环境变量?
How do I set environment variables in Visual Studio 2012?
例如,我需要设置:
$(MyDir) = "c:\my_dir"
推荐答案
在文本编辑器中打开项目,进入顶部的现有标签添加
Open the project in a text editor, and into the top existing tag add
<PropertyGroup>
<MyDir>c:\my_dir</MyDir>
...(leave existing ones here)...
</PropertyGroup>
可能有一些方法可以在UI中执行此操作,但是我现在只能手工编辑文件。每个语言都有不同的用户界面(!)
There's probably some way to do this in the UI, but I only ever edit the files by hand nowadays. And its a different UI for every language(!)
这篇关于如何在Visual Studio 2012中设置环境变量?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文