title: Access to the path is denied when trying to build ASP.Net core VS2015 project
body: <p>I have an ASP.NET Core RTM application that I copied and checked into TFS from Visual Studio.d. However when I do build it I get the following error</p>
  
  <blockquote>
    <p>Failed to make the following project runnable: MyApplication (.NETFramework,Version=v4.5.2) reason: Access to the path 'C:\Source\MyApplication\MyApplication\b\bin\Debug\net452\win7-x64\MyApplication.exe.config' is denied.    Mars.Web    C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v14.0\DotNet\Microsoft.DotNet.Common.Targets  262 </p>
  </blockquote>
  
  <p>What I have tried but isn't working</p>
  
  <ul>
  <li><p>run Visual Studio 2015 as Administrator</p></li>
  <li><p>Remove the readonly property or set permissions to all for the <code>bin\Debug\net452\win7-x64\</code> directory</p></li>
  <li><p>Deleting thr <code>bin</code> Directory</p></li>
  <li><p>Restart Visual Studio and make sure I am connected to TFS</p></li>
  <li><p>Run <code>dotnet restore</code> in my project root directory as mentioned in <a href="https://stackoverflow.com/questions/38328677/failed-to-make-the-following-project-runnable-object-reference-not-set-to-an-in">this</a> answer</p></li>
  <li><p>Delete <code>obj</code> and <code>bin</code> directory</p></li>
  </ul>