0

I have a TFSBuild.proj which keeps using C:\Windows\Microsoft.NET\Framework64\v4.0.30319 csc.exe to build C#6.0 project. W.r.t CSC version at computer, I have nugget install Roslyn but have no idea how to proceed further. Please advise. Thanks.

Community
  • 1
  • 1
Kok How Teh
  • 1,531
  • 1
  • 21
  • 48
  • Possible duplicate of [How to upgrade msbuild to C# 6?](http://stackoverflow.com/questions/32007871/how-to-upgrade-msbuild-to-c-sharp-6) – jessehouwing Jan 11 '16 at 07:32

1 Answers1

0

The simplest way is installing VS2015 or Microsoft Build Tools 2015 on the build server.

Then just need to set the build templates to point to MS Build version 14.0. For the details, check:BuildActivity ignores ToolsVersion

Community
  • 1
  • 1
PatrickLu-MSFT
  • 44,639
  • 4
  • 24
  • 52
  • That works. I installed the build tool 2015 but I was not aware of setting the ToolPath in the workflow template .xaml file which fixes the issue. Anyway I still think this is a problem with the visual studio 2015 installation flaw that the csc.exe from the platform installed path does not work. – Kok How Teh Jan 13 '16 at 07:39