tag:help.appveyor.com,2012-11-13:/discussions/problems/6894-msbuild-version-for-vs-2017AppVeyor: Discussion 2018-11-17T16:36:10Ztag:help.appveyor.com,2012-11-13:Comment/427928512017-06-18T18:34:35Z2017-06-18T18:34:35ZMSBuild version for VS 2017<div><p>Correct way is adding this to your appveyor.yml:</p>
<pre>
<code>image: Visual Studio 2017</code>
</pre>
<p>feel free to send us your appveyor.yml if you are still having issues with it.</p></div>Feodor Fitsnertag:help.appveyor.com,2012-11-13:Comment/427928512017-09-04T20:47:08Z2017-09-04T20:54:57ZMSBuild version for VS 2017<div><p>For some reason, it does not help with this build:<br>
<a href="https://ci.appveyor.com/project/hallem/restsharp-822/build/105.0.1.188">https://ci.appveyor.com/project/hallem/restsharp-822/build/105.0.1.188</a></p>
<p>You can see it is building this: <a href="https://github.com/restsharp/RestSharp/commit/ac5e6d0087958b9e885342ec2f500482ad28b6d0">https://github.com/restsharp/RestSharp/commit/ac5e6d0087958b9e88534...</a><br>
which includes this line:<br>
<code>image: Visual Studio 2017</code></p>
<p>However, it still uses:</p>
<blockquote>
<p>MSBuild auto-detection: using msbuild version '14.0' from 'C:\Program Files (x86)\MSBuild\14.0\bin\amd64'.</p>
</blockquote>
<p>Same code built on my own configuration builds with msbuild 15:<br>
<a href="https://ci.appveyor.com/project/alexeyzimarev/restsharp">https://ci.appveyor.com/project/alexeyzimarev/restsharp</a></p></div>alextag:help.appveyor.com,2012-11-13:Comment/427928512017-09-05T00:42:47Z2017-09-05T00:47:45ZMSBuild version for VS 2017<div><p>I have the same issue. I need my project to use the MSBuild from<br>
C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\MSBuild\15.0\Bin\MsBuild.exe</p></div>corneliutag:help.appveyor.com,2012-11-13:Comment/427928512017-09-05T16:28:19Z2017-09-05T16:28:19ZMSBuild version for VS 2017<div><p>@alex - could you please try adding <code>where msbuild</code> before nuget restore command to confirm it's VS 2017 image?</p></div>Feodor Fitsnertag:help.appveyor.com,2012-11-13:Comment/427928512017-09-05T17:56:33Z2017-09-05T17:56:36ZMSBuild version for VS 2017<div><p>Right, thank you Feodor. It seems that my build plan uses appveyor.yml file, whilst the upstream build plan ignores it. My command <code>which msbuild.exe</code> does not appear there at all.</p></div>alextag:help.appveyor.com,2012-11-13:Comment/427928512017-09-05T18:33:11Z2017-09-05T18:33:11ZMSBuild version for VS 2017<div><p>No problem!</p></div>Feodor Fitsnertag:help.appveyor.com,2012-11-13:Comment/427928512017-12-11T19:23:27Z2017-12-11T19:23:29ZMSBuild version for VS 2017<div><p>I'm running into a similar problem. You can see the failed build here: <a href="https://ci.appveyor.com/project/Haacked/rothko/build/1.0.104">https://ci.appveyor.com/project/Haacked/rothko/build/1.0.104</a></p>
<p>My appveyor.yml is here: <a href="https://github.com/Haacked/Rothko/blob/master/appveyor.yml">https://github.com/Haacked/Rothko/blob/master/appveyor.yml</a></p>
<p>Also, I have enable nuget package restore to true and that seems to be ignored as well.</p></div>Phil Haacktag:help.appveyor.com,2012-11-13:Comment/427928512017-12-11T19:28:23Z2017-12-11T19:28:23ZMSBuild version for VS 2017<div><p>Phil, are you sure the yml file is being used? In my case, for the failing build I had this checkbox "ignore appveyor.yml file" enabled.</p></div>alextag:help.appveyor.com,2012-11-13:Comment/427928512017-12-11T19:33:18Z2017-12-11T19:33:18ZMSBuild version for VS 2017<div><p>Yes, the "ignore appveyor.yml file" checkbox is NOT checked.</p></div>Phil Haacktag:help.appveyor.com,2012-11-13:Comment/427928512017-12-11T19:36:43Z2017-12-11T19:36:43ZMSBuild version for VS 2017<div><p>I think that you already made <a href="https://github.com/Haacked/Rothko/commit/5aa3c8c3c69d71684757f1cfc9c20a5d482366c7">a right fix</a> :) Please also add <code>nuget restore</code> as <code>before_build</code> command.</p></div>Ilya Finkelshteyntag:help.appveyor.com,2012-11-13:Comment/427928512017-12-12T03:09:11Z2017-12-12T03:09:11ZMSBuild version for VS 2017<div><p>Thanks! I'm all set.</p></div>Phil Haacktag:help.appveyor.com,2012-11-13:Comment/427928512018-04-10T19:23:56Z2018-04-10T19:23:57ZMSBuild version for VS 2017<div><p>I have the same problem at <a href="https://ci.appveyor.com/project/MundiPagg/portal-merchantmanagement">https://ci.appveyor.com/project/MundiPagg/portal-merchantmanagement</a> is not building with 15 version.</p>
<p>Could you please help?</p></div>Matheus Moreiratag:help.appveyor.com,2012-11-13:Comment/427928512018-04-10T19:26:41Z2018-04-10T19:26:41ZMSBuild version for VS 2017<div><p>Make sure you are building on <code>Visual Studio 2017</code> image.</p></div>Feodor Fitsnertag:help.appveyor.com,2012-11-13:Comment/427928512018-04-10T19:27:43Z2018-04-10T19:27:43ZMSBuild version for VS 2017<div><p>Yes, I have a</p>
<p>image: Visual Studio 2017</p>
<p>on my appveyor.yml file</p>
<p>[mundipagg.com]<a href="https://www.mundipagg.com/">https://www.mundipagg.com/</a> [<a href="https://mundipagg.com/assinatura/imgs/spacer.gif">https://mundipagg.com/assinatura/imgs/spacer.gif</a>] [<a href="https://mundipagg.com/assinatura/imgs/logo-facebook.png">https://mundipagg.com/assinatura/imgs/logo-facebook.png</a>]<a href="https://www.facebook.com/MundiPagg">https://www.facebook.com/MundiPagg</a> [<a href="https://mundipagg.com/assinatura/imgs/spacer.gif">https://mundipagg.com/assinatura/imgs/spacer.gif</a>] [<a href="https://mundipagg.com/assinatura/imgs/logo-twitter.png">https://mundipagg.com/assinatura/imgs/logo-twitter.png</a>] <a href="https://twitter.com/mundipagg">https://twitter.com/mundipagg</a> [<a href="https://mundipagg.com/assinatura/imgs/spacer.gif">https://mundipagg.com/assinatura/imgs/spacer.gif</a>] [<a href="https://mundipagg.com/assinatura/imgs/logo-linkedin.png">https://mundipagg.com/assinatura/imgs/logo-linkedin.png</a>] <a href="https://www.linkedin.com/company/mundipagg">https://www.linkedin.com/company/mundipagg</a> [<a href="https://mundipagg.com/assinatura/imgs/spacer.gif">https://mundipagg.com/assinatura/imgs/spacer.gif</a>] [<a href="https://mundipagg.com/assinatura/imgs/logo-youtube.png">https://mundipagg.com/assinatura/imgs/logo-youtube.png</a>] <a href="https://www.youtube.com/channel/UCfsp4JkQCOZ0m-aDmQ9bUkA">https://www.youtube.com/channel/UCfsp4JkQCOZ0m-aDmQ9bUkA</a></p>
<pre>
<code> [https://mundipagg.com/assinatura/imgs/spacer.gif] [https://mundipagg.com/assinatura/imgs/spacer.gif]</code>
</pre>
<p>Matheus Moreira<br>
TI<br>
<a href="21">https://mundipagg.com/assinatura/imgs/spacer.gif</a> 98134-0010 <a href="mailto:mmoreira@mundipagg.com">mmoreira@mundipagg.com</a><br>
[<a href="https://mundipagg.com/assinatura/imgs/spacer.gif">https://mundipagg.com/assinatura/imgs/spacer.gif</a>] mundipagg.com<a href="https://www.mundipagg.com/">https://www.mundipagg.com/</a></p>
<hr>
<p>De: Feodor Fitsner <a href="mailto:tender2+d113ee843b@tenderapp.com">tender2+d113ee843b@tenderapp.com</a><br>
Enviado: terça-feira, 10 de abril de 2018 16:26:45<br>
Para: Matheus Moreira | Mundipagg<br>
Assunto: Re: MSBuild version for VS 2017 [Problems #6894]</p></div>Matheus Moreira | Mundipaggtag:help.appveyor.com,2012-11-13:Comment/427928512018-04-10T19:40:17Z2018-04-10T19:40:17ZMSBuild version for VS 2017<div><p>OK, could you please email a build log to further work on your case? I'm going to close this public discussion.</p></div>Feodor Fitsner