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

No such property: projects for class: com.ullink.AssemblyInfoVersionPatcher_Decorated #76

Closed chazul closed 7 years ago

chazul commented 7 years ago

I modified the sample buildscript on your home page and at the bottom there is the following code:

assemblyInfoPatcher { ... projects = [ 'XZYProject' ] }

When I looked at 'class AssemblyInfoVersionPatcher', 'fileVersion' and 'version' have a '@Input' but not the 'projects'. Could this be the reason? Or am I doing something wrong?

gluck commented 7 years ago

No it shouldn't have such impact AFAIK. Most likely cause is that you're using an earlier version of the plugin when the projects property didn't exist, can you double check ?

chazul commented 7 years ago

Yes it was the wrong version. But it was because I copied your example on the main page. Please correct the plugin version in that. The latest I found was 2.14 and it solved the issue.

dependencies { classpath "com.ullink.gradle:gradle-msbuild-plugin:2.14" }

Thanks for the help.

gluck commented 7 years ago

Done, note that 2.16 should be the latest, you can see the changes in the CHANGELOG