title: What is the VS2012 equivalent of Environment.GetEnvironmentVariable?
body: <p>I'm trying to get the temp directory and store some variables in it. The code that I found to get the temp dir is </p>
  
  <pre><code>string temp = Environment.GetEnvironmentVariable("tmp");
  </code></pre>
  
  <p>But this gives me an error,</p>
  
  <blockquote>
    <p>System.Environment does not contain a definition for
    'GetEnvironmentVariable'.</p>
  </blockquote>
  
  <p>I've also tried </p>
  
  <pre><code>string tempPath = System.IO.Path.GetTempPath();
  </code></pre>
  
  <p>How can I reach the temp directory in Visual Studio 2012?</p>