locked
Build Failure - Unable to find Visual Studio 2017 RRS feed

  • Question

  • After updating to TFS 2017 Update 2 RC1, my builds are failing because Visual Studio 2017 (MSBuild 15.0) is not found. I am using the Visual Studio Build task with 'Latest' selected as the Visual Studio version.

    • I have reinstalled Visual Studio Build Tools 2017.
    • I have repaired my TFS installation.
    • I have reinstalled my build agent.
    • I have verified that my Build agent has Visual Studio 2017 and MSBuild 15.0 capabilities.

    The only way I am able to get a successful build is to replace my 'Visual Studio Build' tasks with 'MSBuild', and manually direct to the MSBuild executable. I don't find this acceptable, I have too many Build configurations that would need to be changed. And when the next version of MSBuild comes out, I have to manually update them all.

    Build Agent Capabilities:

    MSBuild C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\MSBuild\15.0\Bin\
    MSBuild_15.0 C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\MSBuild\15.0\Bin\
    MSBuild_15.0_x64 C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\MSBuild\15.0\Bin\amd64\
    MSBuild_2.0 C:\Windows\Microsoft.NET\Framework\v2.0.50727\
    MSBuild_2.0_x64 C:\Windows\Microsoft.NET\Framework64\v2.0.50727\
    MSBuild_3.5 C:\Windows\Microsoft.NET\Framework\v3.5\
    MSBuild_3.5_x64 C:\Windows\Microsoft.NET\Framework64\v3.5\
    MSBuild_4.0 C:\Windows\Microsoft.NET\Framework\v4.0.30319\
    MSBuild_4.0_x64 C:\Windows\Microsoft.NET\Framework64\v4.0.30319\
    MSBuild_x64 C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\MSBuild\15.0\Bin\amd64\

    VisualStudio C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\
    VisualStudio_10.0 C:\Program Files (x86)\Microsoft Visual Studio 10.0\
    VisualStudio_15.0 C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\
    VisualStudio_IDE C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\Common7\IDE\
    VisualStudio_IDE_10.0 C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE\
    VisualStudio_IDE_15.0 C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\Common7\IDE\
    Tuesday, June 13, 2017 11:20 PM

All replies

  • Hi Andrew,

    Thank you for posting here.

    Can you see the version Visual Studio 2017 under Visual Studio Version dropdown list? If you can see it, you can try to select “Visual Studio 2017” directly instead of “Latest”, then check if it works.

    If that still doesn’t work, just check the registry :

    HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Microsoft\VisualStudio\SxS\VS7\15.0   

    If the value is set to the other directory, just try to edit that to point to the BuildTools directory, then try it again. Reference the screenshot below.

    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.

    Saturday, July 29, 2017 3:31 AM
  • HI
    I am still facing the issue.

    my Build is set to VS2017 and my registry is the same as mentioned above. 

    Upgrading to TFS2017.1 helps, but I cannot upgrade now as there are some dependence. 

    Please help


    Monday, December 4, 2017 8:50 PM