.Net Core Access Issue
Answered
Hi,
I'm getting the following error while trying to run a build script for .Net Core, is there anything obvious that I may have missed?
- Cannot run process: Cannot run program "C:\Program Files\dotnet" (in directory "C:\TeamCity\buildAgent\work\8dfb4321f78a85e2"): CreateProcess error=5, Access is denied
Note that I've followed the blog on how to install the required plugin, which gives me the following agent parameters. These are slightly different from those in the blog https://blog.jetbrains.com/teamcity/2016/11/teamcity-dotnet-core/
Please sign in to leave a comment.
Hi Chris,
Could you please check that the environment variable DOTNET_HOME=C:\Program Files\dotnet\ is set for the user account that runs the TeamCity build agent?
What version of .Net Core SDK is installed on your build agent? Seems TeamCity does not detect it, see if rebooting the agent machine resolves the issue.
I hope that'll help.
Thanks Julia, tried all that apart from the reboot which has of course solved the issue.