Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NuGetPack.getIdFromMsbuildTask got broken by csprojPath type change #91

Open
ilya-yamschikov opened this issue Aug 1, 2022 · 0 comments

Comments

@ilya-yamschikov
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant