Itiviti / gradle-msbuild-plugin

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

Ensure we use local installed MsBuild #108

Closed dfev77 closed 5 years ago

dfev77 commented 5 years ago

Use MSBuildLocator to load the local installed MsBuild and do not distribute the compile type referenced MsBuild libs.
This is needed in order to avoid using older MsBuild versions from GAC as new VS versions don't install assemblies in GAC.

Notes:

• Works only with VS 2017 and later! • Had to manually remove the props & targets files included by the Locator package due to backward compatibility with msbuild (see Microsoft/MSBuildLocator#52) • tests are not using locator as AppVeyor is building using MsBuild 14, so using locator would fail the tests there

timotei commented 5 years ago

Reopened from https://github.com/Ullink/gradle-msbuild-plugin/pull/105