Bamboo error when running a build plan after upgrading to Visual Studio 2017
Asked by Christian Palacios:

We have recently upgraded a server to use VS 2017 instead of VS 2015. The Bamboo build plan is now getting these errors but I can't figure out what it is. I had to change the "temp" folder of Bamboo as it was also not working. It's complaining about a path not found, but is it related to Bamboo? The VS project builds just fine when running it in VS 2017, but not in Bamboo. Any suggestions?

29-Nov-2018 17:44:37 "E:\\bamboo-agent-home\\xml-data\\build-dir\\CNEW-OFDB-JOB1\\solution\\OneGeo.sln" (clean;restore;Build target) (1) -\>  
29-Nov-2018 17:44:37 "E:\\bamboo-agent-home\\xml-data\\build-dir\\CNEW-OFDB-JOB1\\orm-mapper\\entity-developer\\OneGeo.DomainEntityObjects\\NHibernateDesigner\\NHibernateDesigner.csproj" (default target) (17:7) -\>  
**29-Nov-2018 17:44:37 CSC : error CS2001: Source file 'C:\\Windows\\system32\\config\\systemprofile\\AppData\\Local\\Temp\\.NETFramework,Version=v4.6.1.AssemblyAttributes.cs' could not be found. \[E:\\bamboo-agent-home\\xml-data\\build-dir\\CNEW-OFDB-JOB1\\orm-mapper\\entity-developer\\OneGeo.DomainEntityObjects\\NHibernateDesigner\\NHibernateDesigner.csproj\]**   
29-Nov-2018 17:44:37  
29-Nov-2018 17:44:37  
29-Nov-2018 17:44:37 "E:\\bamboo-agent-home\\xml-data\\build-dir\\CNEW-OFDB-JOB1\\solution\\OneGeo.sln" (clean;restore;Build target) (1) -\>  
29-Nov-2018 17:44:37 "E:\\bamboo-agent-home\\xml-data\\build-dir\\CNEW-OFDB-JOB1\\orm-mapper\\OneGeo.ORMMapper.Core\\OneGeo.ORMMapper.Core.csproj" (default target) (11:10) -\>  
**29-Nov-2018 17:44:37 CSC : error CS2001: Source file 'C:\\Windows\\system32\\config\\systemprofile\\AppData\\Local\\Temp\\.NETFramework,Version=v4.6.1.AssemblyAttributes.cs' could not be found. \[E:\\bamboo-agent-home\\xml-data\\build-dir\\CNEW-OFDB-JOB1\\orm-mapper\\OneGeo.ORMMapper.Core\\OneGeo.ORMMapper.Core.csproj\]**   
29-Nov-2018 17:44:37  
29-Nov-2018 17:44:37  
29-Nov-2018 17:44:37 "E:\\bamboo-agent-home\\xml-data\\build-dir\\CNEW-OFDB-JOB1\\solution\\OneGeo.sln" (clean;restore;Build target) (1) -\>  
29-Nov-2018 17:44:37 "E:\\bamboo-agent-home\\xml-data\\build-dir\\CNEW-OFDB-JOB1\\orm-mapper\\OneGeo.ORMMapper.Test\\OneGeo.ORMMapper.Test.csproj" (default target) (6:7) -\>  
**29-Nov-2018 17:44:37 CSC : error CS2001: Source file 'C:\\Windows\\system32\\config\\systemprofile\\AppData\\Local\\Temp\\.NETFramework,Version=v4.6.1.AssemblyAttributes.cs' could not be found. \[E:\\bamboo-agent-home\\xml-data\\build-dir\\CNEW-OFDB-JOB1\\orm-mapper\\OneGeo.ORMMapper.Test\\OneGeo.ORMMapper.Test.csproj\]**   
29-Nov-2018 17:44:37  
29-Nov-2018 17:44:37  
29-Nov-2018 17:44:37 "E:\\bamboo-agent-home\\xml-data\\build-dir\\CNEW-OFDB-JOB1\\solution\\OneGeo.sln" (clean;restore;Build target) (1) -\>  
29-Nov-2018 17:44:37 "E:\\bamboo-agent-home\\xml-data\\build-dir\\CNEW-OFDB-JOB1\\web-api\\Swashbuckle.OData\\Swashbuckle.OData.csproj" (default target) (5:11) -\>  
**29-Nov-2018 17:44:37 CSC : error CS2001: Source file 'C:\\Windows\\system32\\config\\systemprofile\\AppData\\Local\\Temp\\.NETFramework,Version=v4.6.1.AssemblyAttributes.cs' could not be found. \[E:\\bamboo-agent-home\\xml-data\\build-dir\\CNEW-OFDB-JOB1\\web-api\\Swashbuckle.OData\\Swashbuckle.OData.csproj\]**


Answers:
author: Foong
body: Is the remote agent started as Windows Service?

Try configuring the Windows Service to start the remote agent as Local user account as stated in [Running Bamboo as a Windows service as the local user](https://confluence.atlassian.com/bamboo/running-bamboo-as-a-windows-service-as-the-local-user-416580754.html)


Tags: error

plan

visual-studio