title: CodeDomProvider: where is the LIB environment variable located?
body: <p>I'm using a <code>System.CodeDom.Compiler.CodeDomProvider.CreateProvider("CSharp")</code> to compile C# classes on the fly. Recently I've switched from Visual Studio 2010 to Vistual Studio 2012. I also uninstalled SQL 2005. Since these events I've been unable to compile my classes due to the following error: </p>
  
  <blockquote>
    <p>Invalid search path 'C:\Program Files\SQLXML 4.0\bin\' specified in
    'LIB environment variable' -- 'The system cannot find the path
    specified.</p>
  </blockquote>
  
  <p><strong>Where is this "LIB environment variable" located?</strong></p>
  
  <p><sub>I've checked my Windows 7 Environment Variables (Control Panel\System\Advanced system settings\Advanced\Environment Variables\System variable), but it's not there.</sub></p>