Skip to content

Commit

Permalink
path to dependencies file is now relative after nuget convert - fixes #…
Browse files Browse the repository at this point in the history
  • Loading branch information
theimowski committed Nov 21, 2014
1 parent 74dbb7c commit cdd3930
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/Paket.Core/NugetConvert.fs
Original file line number Diff line number Diff line change
Expand Up @@ -222,12 +222,12 @@ let ConvertFromNuget(dependenciesFileName, force, installAfter, initAutoRestore,
convertNugetToRefFile(nugetPackagesConfig)
| SolutionLevel -> ()

for slnFile in FindAllFiles(".", "*.sln") do
for slnFile in FindAllFiles(root, "*.sln") do
let solution = SolutionFile(slnFile.FullName)
solution.RemoveNugetEntries()
let relativePath = createRelativePath solution.FileName Environment.CurrentDirectory
solution.AddPaketFolder(Path.Combine(relativePath, dependenciesFileName),
if installAfter then Some(Path.Combine(relativePath, "paket.lock")) else None)
let dependenciesFileRef = createRelativePath solution.FileName dependenciesFileName
let lockFileRef = createRelativePath solution.FileName (Path.Combine(root,"paket.lock"))
solution.AddPaketFolder(dependenciesFileRef, if installAfter then Some(lockFileRef) else None)
solution.Save()

for project in ProjectFile.FindAllProjects root do
Expand Down

0 comments on commit cdd3930

Please sign in to comment.