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

Unable to execute gradle msbuild task #122

Closed sreesake closed 6 months ago

sreesake commented 3 years ago

I am running gradle 6.4.1 and trying to use older version 2.9 of gradle-msbuild-plugin. It's a limitation due to corporate firewall.

When I execute gradle msbuild, I keep having error saying Cannot cast object 'null (Output)' with class 'org.gradle.api.internal.tasks.DefaultTaskOutputFilePropertyRegistration' to class 'org.gradle.api.tasks.TaskOutputs' error

My build.gradle file is barebones with just repo info and solution filename, targets and destinationDir in msbuild config section.

ngyukman commented 3 years ago

hi @sreesake

not sure if you still have this issue in latest version, but if that's the case can you try with --stacktrace to see where is the problem? it seems to be related to line 25 in build.gradle