Itiviti / gradle-nuget-plugin

Executes NuGet from a gradle build
Apache License 2.0
22 stars 29 forks source link

NuGetPack.getIdFromMsbuildTask got broken by csprojPath type change #91

Open ilya-yamschikov opened 2 years ago

ilya-yamschikov commented 2 years ago

There was a commit 2ead8da5692cfee34154d74433e5427db1ee3e1e that has changed NuGetPack class. A type of csprojPath field has changed from String to File. This field is used in getIdFromMsbuildTask method that left unchanged: https://github.com/Itiviti/gradle-nuget-plugin/blob/045fc691a704cda3fd6afcc43acc7e820a868926/src/main/groovy/com/ullink/NuGetPack.groovy#L174-L178

Now when there's an msbuild task in the project and I want to take the Id from it I get an exception on line 175: No signature of method: java.io.File.equalsIgnoreCase() is applicable for argument types (String) ...