Nuget Installer failing Access to the csproj file is denied.
I'm having some issues running builds for some projects after recently updating to the latest version of Teamcity. It seems that for some reason when a build is start it will fail at the Nuget Install step when updating packages, witht the error Access to path ".csproj filename" is denied. None of the Agent settings have changed since the update. The account running the windows service for the Agents has full access to the build folders in the security permissions.
I have tried using another user account and changing the version of the nuget.exe used by the installer but I still can't seem to track down the issue. From what I can tell nothing is accessing the file and preventing it from being accessed.

Please sign in to leave a comment.
Hi Chris,
thanks for your report. We have specific instructions on troubleshooting this kind of scenarios where this only fails in teamcity and works locally. Could you please follow them step by step? If it doesn't work, there is specific instructions there as well to report it in our issue tracker with the requested details.
Sorry for the inconvenience
Hi Denis,
On further investigation, I discovered that this issue was a result of the workspace info created by Teamcity in TFS causing the files to appear to be locked. Deleting all the teamcity worksapces in TFS seems to have removed the lock and resolved the issue.