Skip to content

Commit

Permalink
Only pick up project output files that exactly match assembly filename.
Browse files Browse the repository at this point in the history
Fixes #750
  • Loading branch information
Ian2020 committed Apr 7, 2015
1 parent 482d25a commit ee7c56f
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/Paket.Core/PackageMetaData.fs
Original file line number Diff line number Diff line change
Expand Up @@ -159,8 +159,10 @@ let findDependencies (dependencies : DependenciesFile) config (template : Templa

let additionalFiles =
fi.Directory.GetFiles(fi.Name.Replace(fi.Extension,"") + ".*")
|> Array.filter (fun f -> [".xml"; ".dll"; ".exe"; ".pdb"; ".mdb"] |> List.exists ((=) (f.Extension.ToLower())))

|> Array.filter (fun f ->
let sameFileName = (Path.GetFileNameWithoutExtension f.Name) = (Path.GetFileNameWithoutExtension fi.Name)
let validExtension = [".xml"; ".dll"; ".exe"; ".pdb"; ".mdb"] |> List.exists ((=) (f.Extension.ToLower()))
sameFileName && validExtension)
additionalFiles
|> Array.fold (fun template file -> addFile file.FullName targetDir template) template

Expand Down

0 comments on commit ee7c56f

Please sign in to comment.