How do I enable C# 7 builds in Team Foundation Server 2015?

前端 未结 2 975
不思量自难忘°
不思量自难忘° 2021-01-13 05:25

We have Team Foundation Server (TFS) 2015 installed on-premises. We would like to use Visual Studio 2017 to take advantage of the latest C# language features. We are not rea

2条回答
  •  有刺的猬
    2021-01-13 05:59

    I didn't follow these steps exactly, but based on what I have learned, I think they would have worked:

    1. Install Visual Studio 2017 Build Tools on the XAML Build Configuration server
    2. Add these lines to the TFSBuildServiceHost.exe.config file:
      
        

    C:\Program Files\Microsoft Team Foundation Server 14.0\Tools\TFSBuildServiceHost.exe.config

    (I never would have figure that out without this post. Thank you jonesy2488!)

    1. Restart the XAML Build Configuration service.
    2. Change the XAML Build Process Template to include the ToolVersion="15.0" parameter:
    
    

提交回复
热议问题