I periodically have the following error during builds:
Access to the path 'C:\Builds\4\MyApp\Sources\External\Packages\Microsoft.Net.Compilers.1.0.0\tools\Microsoft.Build.Tasks.CodeAnalysis.dll' is denied.
This is not blocking because the next build has been working. But in the case of continuous integration, it is very penalizing.
My configuration: TFS2015/VS2015 and the build server is Windows Server 2008 R2
Any help would be highly appreciatable.
You could try to clean the cache folder on your build agent machine. The folder path is: C:\Users\username\AppData\Local\Microsoft\Team Foundation\x.0\Cache
.
Clean the build directory on your build agent machine.
If you use old XAML build, migrate to new build system.
Make sure you use Nuget to restore packages. NuGet Package Restore installs all a project's dependencies as listed in either the project file or packages.config
.