Could "Build Tools for Visual Studio 2017" be installed to the VS 2017 image?

jeavon's Avatar

jeavon

25 Apr, 2017 09:51 AM

Could you please add "Build Tools for Visual Studio 2017" to the VS2017 image?

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

  1. Support Staff 1 Posted by Ilya Finkelshte... on 26 Apr, 2017 02:20 AM

    Ilya Finkelshteyn's Avatar

    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...

  2. 2 Posted by jeavon on 12 May, 2017 08:41 AM

    jeavon's Avatar

    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.

    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

    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

  3. Support Staff 3 Posted by Feodor Fitsner on 15 May, 2017 03:09 AM

    Feodor Fitsner's Avatar

    Just found this: https://gist.github.com/jpluimers/9b9953050aab8e3e511f#gistcomment-...

    My first reaction was "wow". There are samples on how to use the tool: https://github.com/Microsoft/vswhere/wiki/Find-MSBuild As I understand it could be downloaded from releases during the build: https://github.com/Microsoft/vswhere/releases

    However, on AppVeyor environment (and you can use this locally too) I'd do something very simple like:

    $msbuildPath = $(cmd /c where msbuild)
    

Reply to this discussion

Internal reply

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

Attaching KB article:

»

Already uploaded files

  • Capture.PNG 63.3 KB

Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

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