Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to set environment variables in Visual Studio 2012?

How do I set environment variables in Visual Studio 2012?

For example, I need to set this:

$(MyDir) = "c:\my_dir"
like image 463
user1899020 Avatar asked May 23 '13 15:05

user1899020


1 Answers

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

like image 196
Mike Vine Avatar answered Sep 28 '22 23:09

Mike Vine