Itiviti / gradle-msbuild-plugin

Gradle plugin for msbuild execution, supports C# project files for now
Apache License 2.0
102 stars 57 forks source link

Add support of msbuild shipped with VS 2017+ #75

Closed dtretyakov closed 6 years ago

dtretyakov commented 7 years ago

In VS 2017 has been changed way to register tools in the system and now each VS installation creates a file in %ProgramData%\Microsoft\VisualStudio\Packages\_Instances\%installation_id%\state.json.

In the installationPath we can retrieve a VS installation path and check MsBuild availability in the MSBuild directory.

gdurand commented 7 years ago

As a workaround for other unforeseen changes like this one, I think the directory of MSBuild could be an optional plugin setting.

ngyukman commented 7 years ago

indeed for vs2017+ we need to get the correct msbuild relative to the installed visual studio we should use https://github.com/Microsoft/vswhere/wiki/Find-MSBuild in order to get the msbuild (at least for windows)

ngyukman commented 6 years ago

Released with 2.17