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

Added check to see if MSBuild ToolsVersions exists in Wow6432Node #39

Closed benceszikora closed 9 years ago

benceszikora commented 9 years ago

I received the following error before, because the MSBuild key didn't exist in the given path:

Cannot invoke method sort() on null object

An alternative workaround is manually creating the key, that fixes the issue.

gluck commented 9 years ago

Done it with less code and less nulls, if that suits you: https://github.com/Ullink/gradle-msbuild-plugin/commit/03f37269ca9141aa117ab1eaf39f75f60c787e5d

benceszikora commented 9 years ago

Perfect, thanks I am just getting started with Groovy, this is a lot nicer.