Albacore / albacore

Albacore is a professional quality suite of Rake tasks for building .NET or Mono based systems.
www.albacorebuild.net
221 stars 64 forks source link

Support for MSBuild 15 #229

Closed dusk0r closed 7 years ago

dusk0r commented 7 years ago

MSBuild doesn't write a registry key into HKLM\SOFTWARE\Microsoft\MSBuild. On my machine it's installed into the V2017 directory: %programfiles(x86)%\Microsoft Visual Studio\2017\Professional\MSBuild\15.0\Bin

See https://github.com/Microsoft/msbuild/issues/1377

haf commented 7 years ago

Could you please add and manually test this heuristic here? https://github.com/Albacore/albacore/blob/master/lib/albacore/task_types/find_msbuild_versions.rb

dusk0r commented 7 years ago

Yes. But that path is not fixed, it's just the default installation path. And there are three versions of VS2017 (Community, Professional and Enterprise). Each with a slightly different path.

How should we handle this? Just assume the default installation path?

haf commented 7 years ago

You could always put it on path. But yes, list as many paths as you may find to the professional/ultimate/community editions and place them in the heuristic function; it's good enough – if it's not then you could always use the PATH env var.

haf commented 7 years ago

Merged PR #230