How to set environment variables in Visual Studio 2012?

橙三吉。 提交于 2020-02-21 10:50:13

问题


How do I set environment variables in Visual Studio 2012?

For example, I need to set this:

$(MyDir) = "c:\my_dir"

回答1:


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>

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(!)



来源:https://stackoverflow.com/questions/16718193/how-to-set-environment-variables-in-visual-studio-2012

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!