On the off chance that this migration has taken you more than 10 years, the dotnet CLI is very versatile for this kind of stuff:
dotnet remove MyApp.csproj reference ../MyLibrary/MyLibrary.csproj
dotnet add MyApp.csproj package MyLibrary.NuGet --version 1.2.3