0

My c# project was referring to a package Pkg-Ori from source nuget.org. Then I tried to download the source code of this package, modified it, packed and pushed to my own nuget source as Pkg-Modified for some reason.

Then another package Pkg-A referred to Pkg-Modified(on my own source) and Newtonsoft.Json(on source nuget.org).

When I install Pkg-A using nuget cli with source of my own source, Pkg-Ori on source nuget.org is installed instead of Pkg-Modified on my own source.

How can I tell nuget cli to install Pkg-Modified from my own source?

Or is there any better practice to use a modifed package from nuget.org, or do I need to change the namespace and package id?

3
  • Is this your answer? stackoverflow.com/questions/19001158/… Commented Jun 24, 2020 at 11:00
  • @MahanLameie, it is a different question from mine, about how to add additional source. Commented Jun 24, 2020 at 11:07
  • There seems no way to specify source for the dependencoes only. One try is to install the dependency first with its source, then install the package you really want. It seems nuget will only check if the package is installed but has no idea where is the package from. Commented Jul 8, 2020 at 7:38

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.