Windows Server 2012 environment now using MSBuild 14 by default

Brendan Forster's Avatar

Brendan Forster

19 Jul, 2015 02:58 AM

A recent build is now running MSBuild version 14.0.22823.1 - it's triggering a compiler error, but that's not your problem:

Contrast that with a previous build which chooses the right version:

I gather some other pre-requisite has been added in between.

Setting PATH on install like this doesn't seem to change the behaviour either (perhaps I can do something in my FAKE script to address this):

set PATH=C:\Program Files (x86)\MSBuild\12.0\Bin;%PATH%

EDIT: another thing that's not working for me is this commit which was adapted from this SO thread

  1. Support Staff 1 Posted by Feodor Fitsner on 19 Jul, 2015 08:05 PM

    Feodor Fitsner's Avatar

    Right, Haacked15676 account jas been moved to a new environment where workers have Visual Studio 2015 RC installed.

    If you look at this test build you'll see that there is only MSBuild 12.0 in the path: and AppVeyor doesn't enforce MSBuild version in any way here.

    Looks like it's FAKE picking up the most recent version of MSBuild found on the machine. It might the right time to figure out how to make it use MSBuild 12.0. Maybe there is a switch or something.

    Going forward we'll be migrating all projects to build workers with VS 2015 and VS 2013 installed. Next week we'll be deploying a new image with VS 2015 RTM. Your experience may help others using FAKE on AppVeyor.

    Let me know about your findings or questions.

  2. 2 Posted by Brendan Forster on 19 Jul, 2015 10:20 PM

    Brendan Forster's Avatar

    Thanks for the context Feodor. Should I be choosing a specific image for this project? (I see a bunch of pre-release images but nothing for VS2013 or VS2015)

    I'll try a few other things and bug the FAKE team about how to hook into that MSBuild detection.

  3. Support Staff 3 Posted by Feodor Fitsner on 19 Jul, 2015 11:12 PM

    Feodor Fitsner's Avatar

    Well, you can choose Default Azure with VS 2013 to get where it was before moving to a new environment... and bug FAKE team of course. We want to have a single image with VS 2013 and VS 2015 for all OSS accounts.

  4. Brendan Forster closed this discussion on 20 Jul, 2015 09:09 PM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts


? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac