asp.net core app build error - Access to the path Apex_POC.exe.config is denied
<p>I am trying to build my ASP.NET core 1.0 application using .Net framework 4.6.1</p>

<p>But I am keep getting below error-</p>

<p><strong>Error                      Failed to make the following project runnable: Apex_POC (.NETFramework,Version=v4.6.1) reason: Access to the path 'C:\perforce\CFA\Apex\POC\Apex_POC\src\Apex_POC\bin\Debug\net461\win7-x64\Apex_POC.exe.config' is denied.        Apex_POC             C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v14.0\DotNet\Microsoft.DotNet.Common.Targets          262</strong>     </p>

<p>I verified path is correct and make sure that none of folder/files are in read only mode.</p>

<p>Also, verified I can write into this file. The current content of file is below (everything is by default, nothing is added from my side)-</p>

<pre><code>&lt;configuration&gt;
&lt;runtime&gt;
&lt;gcServer enabled="true"/&gt;
&lt;/runtime&gt;
&lt;/configuration&gt;
</code></pre>

<p><strong>How to resolve this issue?</strong></p>

<p>My environment is VS2015 Professional update3 and a Windows 7 machine.</p>

<p>Thanks &amp; Regards</p>

<p>Vishal</p>