Skip to content

Commit

Permalink
Merge pull request #1349 from fsprojects/monorestore
Browse files Browse the repository at this point in the history
use different protocol on mono
  • Loading branch information
forki committed Jan 6, 2016
2 parents b4e1718 + 9350794 commit 026d349
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion integrationtests/Paket.IntegrationTests/PaketCoreSpecs.fs
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,12 @@ let ``#1341 http dlls``() =
let deps = sprintf """group Files
http file:///%s/library.dll library/library.dll""" (root.Replace("\\","/"))

let monoDeps = sprintf """group Files
File.WriteAllText(Path.Combine(root,"paket.dependencies"),deps)
http file://%s/library.dll library/library.dll""" (root.Replace("\\","/"))

File.WriteAllText(Path.Combine(root,"paket.dependencies"),if isMono then monoDeps else deps)

directPaket "update -v" "i001341-http-dlls" |> ignore

Expand Down
2 changes: 1 addition & 1 deletion src/Paket.Core/ProjectFile.fs
Original file line number Diff line number Diff line change
Expand Up @@ -480,7 +480,7 @@ type ProjectFile =
let name =
match fileItem.BuildAction with
| BuildAction.Reference ->
let n = FileInfo(fileItem.Include).Name
let n = FileInfo(fileItem.Include).Name.TrimEnd('\\').Split('\\') |> Array.last
n.Replace(Path.GetExtension(n),"")
| _ -> fileItem.Include

Expand Down

0 comments on commit 026d349

Please sign in to comment.