Skip to content

NuGetPack.getIdFromMsbuildTask got broken by csprojPath type change #91

@ilya-yamschikov

Description

@ilya-yamschikov

There was a commit 2ead8da 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:

String getIdFromMsbuildTask() {
def isInputProject = { csprojPath.equalsIgnoreCase(it.projectFile) }
def msbuildTask = project.tasks.find {
it.class.name.startsWith("com.ullink.Msbuild") && it.projects.values().any(isInputProject)
}

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) ...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions