title: "Unable to create directory" error with "Access to path is denied." when building a solution in Visual Studio
body: <p>I'm trying to build a VS2010 C++ project in VS2013 (to be precise, an example project from Steinberg Vst SDK) and get the following error:</p>
  
  <blockquote>
    <p>C:\Program Files
    (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\Microsoft.CppBuild.targets(1235,5):
    error MSB3191: Unable to create directory "C:\Program Files
    (x86)\Common Files\VST3\Steinberg". Access to the path 'C:\Program
    Files (x86)\Common Files\VST3\Steinberg' is denied.</p>
  </blockquote>
  
  <p>I haven't modified anything. I've tried to find an answer but the ones i found either are very vague, or doesn't apply to C++. From the error it's clear the problem is that i can't output to Program Files since it's read-only , so how do i change the output directory?</p>
  
  <p>EDIT: I've modified the "Output directory" field in project's properties -> configuration properties -> general tab. However, the error stays the same.</p>
  
  <p>EDIT2: SOLVED the problem. The linker output was set to Program Files. </p>
  
  <p>Thanks in advance for answers.</p>