tag:help.appveyor.com,2012-11-13:/discussions/problems/1709-cannot-force-msbuild-14-on-visual-studio-1015-ctp-6-imageAppVeyor: Discussion 2018-10-19T08:17:04Ztag:help.appveyor.com,2012-11-13:Comment/362125312015-03-06T10:05:49Z2015-03-06T10:05:50ZCannot force MSBuild 14 on Visual Studio 1015 CTP 6 image<div><p>As per <a href=
"http://blog.appveyor.com/blog/2015/01/20/visual-studio-2015-ctp-image">
http://blog.appveyor.com/blog/2015/01/20/visual-studio-2015-ctp-image</a>
I added the path, I can see this in the YAML:</p>
<p>install:<br>
- ps: set PATH="C:\Program Files (x86)\MSBuild\14.0\Bin;%PATH%"</p>
<p>But build log still says:<br>
Microsoft (R) Build Engine version 12.0.31101.0</p>
<p>...causing my build to fail...</p>
<p>Project is:<br>
<a href=
"https://ci.appveyor.com/project/ButchersBoy/materialdesigninxamltoolkit">
https://ci.appveyor.com/project/ButchersBoy/materialdesigninxamltoo...</a></p></div>James Willocktag:help.appveyor.com,2012-11-13:Comment/362125312015-03-06T15:13:01Z2015-03-06T15:13:01ZCannot force MSBuild 14 on Visual Studio 1015 CTP 6 image<div><p>Hi James,</p>
<p>I can't find appveyor.yml in repo:</p>
<p><a href=
"https://github.com/ButchersBoy/MaterialDesignInXamlToolkit?files=1">
https://github.com/ButchersBoy/MaterialDesignInXamlToolkit?files=1</a></p>
<p>Could you please drop me a link to appveyor.yml?</p>
<p>-Feodor</p></div>Feodor Fitsnertag:help.appveyor.com,2012-11-13:Comment/362125312015-03-06T17:38:42Z2015-03-06T17:38:42ZCannot force MSBuild 14 on Visual Studio 1015 CTP 6 image<div><p>Hi,</p>
<p>Poor explanation on my part; I meant when I export the YAML I
could see that line. From the web GUI I have added:</p>
<p>Environment > Install script:<br>
set PATH="C:\Program Files (x86)\MSBuild\14.0\Bin;%PATH%"</p>
<p>But MSBuild is still using v12.</p>
<p>Thanks,</p>
<p>James</p>
<p>[cid:<a href=
"mailto:image001.jpg@01D05831.436F6500">image001.jpg@01D05831.436F6500</a>]</p></div>Mulholland Software Limitedtag:help.appveyor.com,2012-11-13:Comment/362125312015-03-06T17:57:59Z2015-03-06T17:57:59ZCannot force MSBuild 14 on Visual Studio 1015 CTP 6 image<div><p>I see now. Switch "install script" type to "CMD".</p>
<p>-Feodor</p></div>Feodor Fitsnertag:help.appveyor.com,2012-11-13:Comment/362125312015-03-06T19:31:18Z2015-03-06T19:31:19ZCannot force MSBuild 14 on Visual Studio 1015 CTP 6 image<div><p>Hi Feodor,</p>
<p>Made the change, now it can’t find MSBuild at all. Have I
got the correct path? Log below.</p>
<p>Thanks,</p>
<p>James</p>
<p>Build started<br>
git clone -q --branch=master
<a>git://github.com/ButchersBoy/MaterialDesignInXamlToolkit.git</a>
C:\projects\materialdesigninxamltoolkit<br>
git checkout -qf de73aff8ee837ad1509df141fc73de0b7b62145a<br>
Running Install scripts<br>
set PATH="C:\Program Files (x86)\MSBuild\14.0\Bin;%PATH%"<br>
nuget restore<br>
Installing 'MahApps.Metro 1.0.1-ALPHA079'.<br>
Installing 'Dragablz 0.0.0.100'.<br>
Successfully installed 'Dragablz 0.0.0.100'.<br>
Successfully installed 'MahApps.Metro 1.0.1-ALPHA079'.<br>
msbuild "MaterialDesignToolkit.sln" /verbosity:minimal
/logger:"C:\Program
Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll"<br>
'msbuild' is not recognized as an internal or external command,
operable program or batch file.<br>
Command exited with code 1</p></div>Mulholland Software Limitedtag:help.appveyor.com,2012-11-13:Comment/362125312015-03-06T19:40:49Z2015-03-06T19:40:49ZCannot force MSBuild 14 on Visual Studio 1015 CTP 6 image<div><p>Remove the quotes around value. Should be just:</p>
<p>set PATH=C:\Program Files (x86)\MSBuild\14.0\Bin;%PATH%</p>
<p>-Feodor</p></div>Feodor Fitsnertag:help.appveyor.com,2012-11-13:Comment/362125312015-03-06T20:02:23Z2015-03-06T20:02:23ZCannot force MSBuild 14 on Visual Studio 1015 CTP 6 image<div><p>Sorted...Thanks for your time!</p>
<p>James</p>
<p>Sent from my HTC</p>
<p>----- Reply message -----</p></div>Mulholland Software Limitedtag:help.appveyor.com,2012-11-13:Comment/362125312015-06-15T15:34:02Z2015-06-15T15:49:16ZCannot force MSBuild 14 on Visual Studio 1015 CTP 6 image<div><p>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:</p>
<pre>
<code>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.</code>
</pre>
<p>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).</p></div>aggiebentag:help.appveyor.com,2012-11-13:Comment/362125312015-06-15T15:42:04Z2015-06-15T15:42:04ZCannot force MSBuild 14 on Visual Studio 1015 CTP 6 image<div><p>Hi Ben,</p>
<p>Make sure you run install script as CMD.</p>
<ul>
<li>Feodor</li>
</ul></div>Feodor Fitsnertag:help.appveyor.com,2012-11-13:Comment/362125312015-06-15T15:43:34Z2015-06-15T15:49:16ZCannot force MSBuild 14 on Visual Studio 1015 CTP 6 image<div><p>Thanks. Here's my setting (attached as image)</p></div>aggiebentag:help.appveyor.com,2012-11-13:Comment/362125312015-06-15T15:51:23Z2015-06-15T15:51:23ZCannot force MSBuild 14 on Visual Studio 1015 CTP 6 image<div><p>Have you tried that on VS 2015 RC image (not sure why would you
need CTP 6)?</p>
<ul>
<li>Feodor</li>
</ul></div>Feodor Fitsnertag:help.appveyor.com,2012-11-13:Comment/362125312015-06-15T16:03:31Z2015-06-15T16:03:32ZCannot force MSBuild 14 on Visual Studio 1015 CTP 6 image<div><p>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</p></div>aggiebentag:help.appveyor.com,2012-11-13:Comment/362125312015-06-15T16:04:26Z2015-06-15T16:04:26ZCannot force MSBuild 14 on Visual Studio 1015 CTP 6 image<div><p>Great, thanks for the update!</p>
<ul>
<li>Feodor</li>
</ul></div>Feodor Fitsnertag:help.appveyor.com,2012-11-13:Comment/362125312015-08-20T18:14:00Z2015-08-20T18:14:01ZCannot force MSBuild 14 on Visual Studio 1015 CTP 6 image<div><p>Hello.</p>
<p>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 (<a href="https://github.com/YaccConstructor/QuickGraph/blob/master/appveyor.yml">https://github.com/YaccConstructor/QuickGraph/blob/master/appveyor.yml</a>)
. I can see that <code>set PATH</code> command run on build start
but msBuild 14.0 used for build (<a href="https://ci.appveyor.com/project/gsvgit/quickgraph">https://ci.appveyor.com/project/gsvgit/quickgraph</a>)
How can I force msBuild version?</p>
<p>Thanks.</p></div>Semyontag:help.appveyor.com,2012-11-13:Comment/362125312015-08-21T03:48:31Z2015-08-21T03:48:31ZCannot force MSBuild 14 on Visual Studio 1015 CTP 6 image<div><p>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 <code>where
msbuild.exe</code>.</p></div>Feodor Fitsnertag:help.appveyor.com,2012-11-13:Comment/362125312015-08-21T08:08:26Z2015-08-21T08:08:27ZCannot force MSBuild 14 on Visual Studio 1015 CTP 6 image<div><p>Thanks. You are right. FAKE use own configuration for
MsBuild.</p></div>Semyon