I use Selenium tests in project. I add Selenium.WebDriver.ChromeDriver package from NuGet which download file chromedriver.exe and copy it to bin. But during building the project teamcity have problem with copy exe file.
Team City Build Agent is log on as Local System Account
[Web.UI.Tests\Web.UI.Tests.csproj] _CopyOutOfDateSourceItemsToOutputDirectory (1s) [11:17:37][_CopyOutOfDateSourceItemsToOutputDirectory] Copy
[Copy] Copying file from "C:\dev\TeamCity\buildAgent\work\2e8e0deca33dd11e\packages\Selenium.WebDriver.ChromeDriver.2.10.0.0\content\chromedriver.exe" to "bin\Release\chromedriver.exe".
[Copy] C:\Windows\Microsoft.NET\Framework\v4.0.30319\Microsoft.Common.targets(3683, 5): error MSB3021: Unable to copy file "C:\dev\TeamCity\buildAgent\work\2e8e0deca33dd11e\packages\Selenium.WebDriver.ChromeDriver.2.10.0.0\content\chromedriver.exe" to "bin\Release\chromedriver.exe". Access to the path 'bin\Release\chromedriver.exe' is denied.
[Web.UI.Tests\Web.UI.Tests.csproj] Project Web.UI.Tests\Web.UI.Tests.csproj failed.