loic-sharma / BaGet

A lightweight NuGet and symbol server
https://loic-sharma.github.io/BaGet/
MIT License
2.58k stars 644 forks source link

Strange error during migration from Nuget.Server #704

Closed ghost closed 2 years ago

ghost commented 2 years ago

Good day! I'm using BaGet 'v0.4.0-preview2' in powershell set the following: $source = "http://nuget.old-server.com/oldnugetserver/nuget" $destination = "http://nuget.new-server.com:8080/v3/index.json" & C:\Nuget5.11.0.10\nuget.exe setapikey "ourapikey"

next i changed the directory when Web.config was place and ran this script 'nuget_migration.ps1' D:\Nuget.Server> .\nuget_migration.ps1 and in the output i see this:

C:\Nuget5.11.0.10\nuget.exe push -Source http://nuget.new-server.com:8080/v3/index.json "Packages\Newtonsoft.Json.Net35\4.0.2\Newtonsoft.Json.Net35.4.0.2.nupkg" Could not find a part of the path 'D:\Nuget.Server\Packages\Newtonsoft.Json.Net35\4.0.2'.

please help!

ghost commented 2 years ago

The directory for the packages was placed in D:\NugetPackages, why the script look into the wrong directory D:\Nuget.Server\Packages instead of D:\NugetPackages

ghost commented 2 years ago

not actual anymore