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
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
What I have tried but isn't working
run Visual Studio 2015 as Administrator
Remove the readonly property or set permissions to all for the
bin\Debug\net452\win7-x64\
directoryDeleting thr
bin
DirectoryRestart Visual Studio and make sure I am connected to TFS
Run
dotnet restore
in my project root directory as mentioned in this answerDelete
obj
andbin
directory