I am trying to create a build definition to build solution using VS 2015 build definition in Team City. However when my build configuration runs it gives me the following error
C:\TeamCity\buildAgent\work\e6cc09e5f0da4a07\packages\Microsoft.Net.Compilers.1.0.0\tools\Microsoft.CSharp.Core.targets(67, 5): error MSB4062: The "Microsoft.CodeAnalysis.BuildTasks.Csc" task could not be loaded from the assembly C:\TeamCity\buildAgent\work\e6cc09e5f0da4a07\packages\Microsoft.Net.Compilers.1.0.0\build..\tools\Microsoft.Build.Tasks.CodeAnalysis.dll. Could not load file or assembly 'file:///C:\TeamCity\buildAgent\work\e6cc09e5f0da4a07\packages\Microsoft.Net.Compilers.1.0.0\tools\Microsoft.Build.Tasks.CodeAnalysis.dll' or one of its dependencies. The system cannot find the file specified. Confirm that the declaration is correct, that the assembly and all its dependencies are available, and that the task contains a public class that implements Microsoft.Build.Framework.ITask.
It seems to me that I am missing some dlls but the machine on which I have setup Team City for testing is also my Dev machine so by right I have everything installed and the solution is building fine.
Can you please guide me as to what might be wrong here?