visual studio 2015 - Update Build Controller/Agents to build C# 6 /.NET 4.6 application -
here's scene:
we use visual studio online , on-premise build server in our company network tfs 2013 build our solution after gated check-ins , releases.
now upgraded visual studio 2013 visual studio 2015 enterprise , upgraded new .net version. eager make use of new features of c# 6 after first check-in experienced build failed.
(sorry no image here have lack of reputation)
exception message: msbuild error 1 has ended build. can find more specific information cause of error in above messages. (type buildprocessterminateexception) exception stack trace: @ system.activities.statements.throw.execute(codeactivitycontext context) @ system.activities.codeactivity.internalexecute(activityinstance instance, activityexecutor executor, bookmarkmanager bookmarkmanager) @ system.activities.runtime.activityexecutor.executeactivityworkitem.executebody(activityexecutor executor, bookmarkmanager bookmarkmanager, location resultlocation) applicationmanager.cs (33, 0) unexpected character '$' applicationmanager.cs (33, 0) ; expected
it seems build agent not understand new syntax , still compiles old version.
what did in order fix was:
install visual studio 2015 on on-premise build server (the older version visual studio 2013 still installed)
restarted build controller
followed steps in here: https://stackoverflow.com/a/28327275/4919063
which installing visual studio 2015 , new microsoft build tools
- and steps in here promising:
i created new build definition 1 of templates
created new agent pool via web access visual studio online. downloaded
the configureagent.ps1 , executed on build server create new
agent. couldn't figure out how make use of newly created agent.
my question is: how can update build agents run without failure in
respect new .net version?
i suspect you're running 2013 build agent still? in case, open build process template , "run msbuild project" task. set toolpath property location v14 msbuild installed. default:
c:\program files (x86)\msbuild\14.0\bin
that should allow use c# 6 syntax elements.
remove the steps post removing roslyn nuget packages, nuget package no longer needed visual studio 2015 rtm. same package no longer supported vs2013.
the new tfs 2015 build agent downloaded doesn't talk tfs 2013, neither tfs 2015 xaml build agent. long server running tfs 2013, you're stuck using tfs build 2010 , including 2013.
when connecting vso should able use new 2015 build agent. need create new build definition using web interface. cannot use exuiting xaml build definition new build agent.
you can install tfs 2015 xaml agent. install install tfs 2015 on build server , run steps configure xaml build agent. remove tfs 2013 build server machine.
Comments
Post a Comment