Cannot force MSBuild 14 on Visual Studio 1015 CTP 6 image

James Willock's Avatar

James Willock

06 Mar, 2015 10:05 AM

As per http://blog.appveyor.com/blog/2015/01/20/visual-studio-2015-ctp-image I added the path, I can see this in the YAML:

install:
- ps: set PATH="C:\Program Files (x86)\MSBuild\14.0\Bin;%PATH%"

But build log still says:
Microsoft (R) Build Engine version 12.0.31101.0

...causing my build to fail...

Project is:
https://ci.appveyor.com/project/ButchersBoy/materialdesigninxamltoolkit

  1. Support Staff 1 Posted by Feodor Fitsner on 06 Mar, 2015 03:13 PM

    Feodor Fitsner's Avatar

    Hi James,

    I can't find appveyor.yml in repo:

    https://github.com/ButchersBoy/MaterialDesignInXamlToolkit?files=1

    Could you please drop me a link to appveyor.yml?

    -Feodor

  2. 2 Posted by Mulholland Soft... on 06 Mar, 2015 05:38 PM

    Mulholland Software Limited's Avatar

    Hi,

    Poor explanation on my part; I meant when I export the YAML I could see that line. From the web GUI I have added:

    Environment > Install script:
    set PATH="C:\Program Files (x86)\MSBuild\14.0\Bin;%PATH%"

    But MSBuild is still using v12.

    Thanks,

    James

    [cid:[email blocked]]

  3. Support Staff 3 Posted by Feodor Fitsner on 06 Mar, 2015 05:57 PM

    Feodor Fitsner's Avatar

    I see now. Switch "install script" type to "CMD".

    -Feodor

  4. 4 Posted by Mulholland Soft... on 06 Mar, 2015 07:31 PM

    Mulholland Software Limited's Avatar

    Hi Feodor,

    Made the change, now it can’t find MSBuild at all. Have I got the correct path? Log below.

    Thanks,

    James

    Build started
    git clone -q --branch=master git://github.com/ButchersBoy/MaterialDesignInXamlToolkit.git C:\projects\materialdesigninxamltoolkit
    git checkout -qf de73aff8ee837ad1509df141fc73de0b7b62145a
    Running Install scripts
    set PATH="C:\Program Files (x86)\MSBuild\14.0\Bin;%PATH%"
    nuget restore
    Installing 'MahApps.Metro 1.0.1-ALPHA079'.
    Installing 'Dragablz 0.0.0.100'.
    Successfully installed 'Dragablz 0.0.0.100'.
    Successfully installed 'MahApps.Metro 1.0.1-ALPHA079'.
    msbuild "MaterialDesignToolkit.sln" /verbosity:minimal /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll"
    'msbuild' is not recognized as an internal or external command,
    operable program or batch file.
    Command exited with code 1

  5. Support Staff 5 Posted by Feodor Fitsner on 06 Mar, 2015 07:40 PM

    Feodor Fitsner's Avatar

    Remove the quotes around value. Should be just:

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

    -Feodor

  6. 6 Posted by Mulholland Soft... on 06 Mar, 2015 08:02 PM

    Mulholland Software Limited's Avatar

    Sorted...Thanks for your time!

    James

    Sent from my HTC

    ----- Reply message -----

  7. 7 Posted by aggieben on 15 Jun, 2015 03:34 PM

    aggieben's Avatar

    I'm having a similar issue; I've set the path in the install script, but the msbuild that runs is still v12. Here's the console output:

    Build started
    git clone -q --branch=master git://github.com/trinityrepublic/framework.git C:\projects\framework
    git checkout -qf feeb874349b5c10bec30ef66e9f417a8019ebeaf
    Running Install scripts
    set PATH=C:\Program Files (x86)\MSBuild\14.0\Bin;%PATH%
    msbuild "src/TrinityRepublic.Framework/TrinityRepublic.Framework.xproj" /verbosity:normal /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll"
    Microsoft (R) Build Engine version 12.0.31101.0
    [Microsoft .NET Framework, version 4.0.30319.34209]
    Copyright (C) Microsoft Corporation. All rights reserved.
    

    The build fails (as expected when running v12) so I left that part out; my first step here is just to get the right version of msbuild running (unless there's another way to build DNX-based projects).

  8. Support Staff 8 Posted by Feodor Fitsner on 15 Jun, 2015 03:42 PM

    Feodor Fitsner's Avatar

    Hi Ben,

    Make sure you run install script as CMD.

    - Feodor

  9. 9 Posted by aggieben on 15 Jun, 2015 03:43 PM

    aggieben's Avatar

    Thanks. Here's my setting (attached as image)

  10. Support Staff 10 Posted by Feodor Fitsner on 15 Jun, 2015 03:51 PM

    Feodor Fitsner's Avatar

    Have you tried that on VS 2015 RC image (not sure why would you need CTP 6)?

    - Feodor

  11. 11 Posted by aggieben on 15 Jun, 2015 04:03 PM

    aggieben's Avatar

    Ah, I see. I didn't read the blog linked by the OP and didn't realize how to change that setting. It's working now, thank you

  12. Support Staff 12 Posted by Feodor Fitsner on 15 Jun, 2015 04:04 PM

    Feodor Fitsner's Avatar

    Great, thanks for the update!

    - Feodor

  13. 13 Posted by Semyon on 20 Aug, 2015 06:14 PM

    Semyon's Avatar

    Hello.

    I have the similar problem. I use appveyor for my open source project hosted on GitHub. It is critical to use build engine 12.0, so I try to reset PAHT in my appveyor.yml (https://github.com/YaccConstructor/QuickGraph/blob/master/appveyor.yml) . I can see that set PATH command run on build start but msBuild 14.0 used for build (https://ci.appveyor.com/project/gsvgit/quickgraph) How can I force msBuild version?

    Thanks.

  14. Support Staff 14 Posted by Feodor Fitsner on 21 Aug, 2015 03:48 AM

    Feodor Fitsner's Avatar

    I don't I think it's environment-specific issue, but most probably FAKE is choosing wrong (latest?) msbuild. After resetting PATH you can make sure msbuild 12.0 is first found, by where msbuild.exe.

  15. 15 Posted by Semyon on 21 Aug, 2015 08:08 AM

    Semyon's Avatar

    Thanks. You are right. FAKE use own configuration for MsBuild.

  16. Ilya Finkelshteyn closed this discussion on 25 Aug, 2018 01:59 AM.

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

Keyboard shortcuts

Generic

? 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