Skip to content

Commit

Permalink
take only first framework
Browse files Browse the repository at this point in the history
  • Loading branch information
Sebastian Szczepanski committed Jun 29, 2021
1 parent 0c08f0a commit 7a2a73e
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -125,8 +125,10 @@ class PaketUnityInstall extends ConventionTask {
def fileTree = project.fileTree(dir: project.projectDir)
fileTree.include("packages/${nuget}/content/**")

getFrameworks().each({
fileTree.include("packages/${nuget}/lib/${it}/**")
getFrameworks().find({
def exists = new File(project.projectDir, "packages/${nuget}/lib/${it}").exists()
if (exists) fileTree.include("packages/${nuget}/lib/${it}/**")
return exists
})

fileTree.include("packages/${nuget}/lib/*.dll")
Expand Down

0 comments on commit 7a2a73e

Please sign in to comment.