How to Force TFS2015 to use VS2017 BuildTools To Compile C# 7 Code - USE MSBuild 15.0 Instead of MSBuild 14.0 RRS feed

  • Question

  • Hi Friends,


    TFS2015.3 on-prem

    BuildTools 2017 installed on BC

    .Net 4.7 Devpack installed on BC

    Developing in VS2017 

    Build error - "Invalid expression term"

    How can I force the build to use MSBuild 15.0 installed of 14.0?



    Monday, July 17, 2017 6:01 PM


  • Hi czofnas001,

    Did you use vNext build? You need to write your own build task to use MSBuild 15.0. With the default visual studio build task, you could not force build to use MSBuild 15.0 in TFS 2015.

    You could consider to upgrade your TFS server to TFS 2017.1 .

    Best Regards

    MSDN Community Support
    Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.

    • Marked as answer by czofnas001 Tuesday, July 18, 2017 12:48 PM
    Tuesday, July 18, 2017 11:37 AM