tag:help.appveyor.com,2012-11-13:/discussions/questions/3723-could-build-tools-for-visual-studio-2017-be-installed-to-the-vs-2017-imageAppVeyor: Discussion 2018-08-25T02:17:05Ztag:help.appveyor.com,2012-11-13:Comment/424257882017-04-25T09:51:07Z2017-04-25T09:51:07ZCould "Build Tools for Visual Studio 2017" be installed to the VS 2017 image?<div><p>Could you please add "Build Tools for Visual Studio 2017" to the VS2017 image?</p>
<p>It allows us to use the path "%programfiles(x86)%\Microsoft Visual Studio\2017\BuildTools\MSBuild\15.0\Bin\amd64\MsBuild.exe" instead of the path having to be specific to the VS edition installed such as "%programfiles(x86)%\Microsoft Visual Studio\2017\Community\MSBuild\15.0\Bin\amd64\MsBuild.exe" that we need to use currently</p></div>jeavontag:help.appveyor.com,2012-11-13:Comment/424257882017-04-26T02:20:55Z2017-04-26T02:20:55ZCould "Build Tools for Visual Studio 2017" be installed to the VS 2017 image?<div><p>We are hesitant to duplicate msbuild on a new image. Could you please describe your scenario with more details? Maybe we can come up with some simple workaround...</p></div>Ilya Finkelshteyntag:help.appveyor.com,2012-11-13:Comment/424257882017-05-12T08:41:07Z2017-05-12T08:41:39ZCould "Build Tools for Visual Studio 2017" be installed to the VS 2017 image?<div><p>All versions of MSBuild until v15 have had the same path regardless of what edition of VS is installed. MSBuild v15 varies path depending on the edition of VS installed which is annoying.</p>
<p>For AppVeyor it's located at %programfiles(x86)%\Microsoft Visual Studio\2017\Community\MSBuild\15.0\Bin\amd64\MsBuild.exe but on my machine it's %programfiles(x86)%\Microsoft Visual Studio\2017\Enterprise\MSBuild\15.0\Bin\amd64\MsBuild.exe</p>
<p>If "Build Tools for Visual Studio 2017" are installed the location isn't related to the Visual Studio edition, in fact these tools are specifically created for build servers, so I can install these on my machine and know they are also on AppVeyor and any scripts etc will execute on both</p></div>jeavontag:help.appveyor.com,2012-11-13:Comment/424257882017-05-15T03:09:48Z2017-05-15T03:09:48ZCould "Build Tools for Visual Studio 2017" be installed to the VS 2017 image?<div><p>Just found this: <a href="https://gist.github.com/jpluimers/9b9953050aab8e3e511f#gistcomment-2021989">https://gist.github.com/jpluimers/9b9953050aab8e3e511f#gistcomment-...</a></p>
<p>My first reaction was "wow". There are samples on how to use the tool: <a href="https://github.com/Microsoft/vswhere/wiki/Find-MSBuild">https://github.com/Microsoft/vswhere/wiki/Find-MSBuild</a> As I understand it could be downloaded from releases during the build: <a href="https://github.com/Microsoft/vswhere/releases">https://github.com/Microsoft/vswhere/releases</a></p>
<p>However, on AppVeyor environment (and you can use this locally too) I'd do something very simple like:</p>
<pre>
<code>$msbuildPath = $(cmd /c where msbuild)</code>
</pre></div>Feodor Fitsner