tag:help.appveyor.com,2012-11-13:/discussions/suggestions/173-allow-me-to-pick-which-msbuild-i-want-to-runAppVeyor: Discussion 2018-08-25T01:38:45Ztag:help.appveyor.com,2012-11-13:Comment/317354662014-02-21T18:38:28Z2014-02-21T18:38:28ZAllow me to pick which msbuild I want to run<div><p>This is specifically important with VS 2013 and MSBuild 12.0. If
I have a VS 2013 project and you build it with MSBuild 4.0 it can
create problems when trying to location targets.</p></div>christag:help.appveyor.com,2012-11-13:Comment/317354662014-02-21T19:16:01Z2014-02-21T19:16:01ZAllow me to pick which msbuild I want to run<div><p>OK, I could envision the following implementation:</p>
<ol>
<li>We'd leave PATH set to
<code>C:\Windows\Microsoft.NET\Framework\v4.0.30319</code> (as of
now), so if you have just <code>msbuild.exe</code> in your scripts
it calls MSBuild 4.0.<br></li>
<li>On "Build" tab of project settings add <strong>Visual Studio
version</strong> dropdown with three values:<br>
<ul>
<li>Auto</li>
<li>Visual Studio 2013</li>
<li>Visual Studio 2012 and below</li>
</ul>
</li>
</ol>
<p><code>Auto</code> option will be analyzing <code>.sln</code>
file (if specified) to determine VS version. If <code>.sln</code>
file is not provided it falls back to msbuild in PATH. Second
option will do explicit call to <code>C:\Program Files
(x86)\MSBuild\12.0\Bin\msbuild.exe</code>.<br>
Third option will call <code>msbuild.exe</code> which is in
PATH.</p>
<p>What do you think?</p></div>Feodor Fitsnertag:help.appveyor.com,2012-11-13:Comment/317354662014-02-21T19:23:23Z2014-02-21T19:23:23ZAllow me to pick which msbuild I want to run<div><p>Generally that sounds like a good plan.</p>
<p>Given that you already search for the solution and you load it
or at least parse it to analyze the list of projects I don't see
why you couldn't analyze the solution if you find it? Why would you
only try the analysis under the Auto option if I explicitly specify
a solution?</p></div>christag:help.appveyor.com,2012-11-13:Comment/317354662014-02-21T20:13:31Z2014-02-21T20:13:31ZAllow me to pick which msbuild I want to run<div><p>Well, you are right! :)</p>
<p>Indeed, if AppVeyor found <code>.sln</code> (or it was
specified) it calls MSBuild 12.0 if it's VS 2013. In all other
cases it calls MSBuild which is in PATH.</p>
<p>Cool, I'm adding a new TODO item. Thanks!</p>
<p>Btw, give a try to <a href=
"http://www.appveyor.com/docs2/deployment/azure-cloud-service">Azure
Cloud Service deployment</a> when you have a chance.</p></div>Feodor Fitsnertag:help.appveyor.com,2012-11-13:Comment/317354662014-02-22T02:39:22Z2014-02-22T02:39:22ZAllow me to pick which msbuild I want to run<div><p>Chris,</p>
<p>It's been deployed. Now if it's VS 2013 solution AppVeyor runs
MSBuild 12.0.</p>
<p>Thank you! Let me know if you find anything else.</p></div>Feodor Fitsnertag:help.appveyor.com,2012-11-13:Comment/317354662014-02-22T02:53:14Z2014-02-22T02:53:14ZAllow me to pick which msbuild I want to run<div><p>Awesome, thanks. You have a very interesting service here.</p>
<p>Sent from my Windows Phone</p>
<hr></div>christag:help.appveyor.com,2012-11-13:Comment/317354662014-02-22T03:56:56Z2014-02-22T03:56:56ZAllow me to pick which msbuild I want to run<div><p>Glad you like it!</p></div>Feodor Fitsner