Indicate the source depending on nuspec

I have a local NuGet . This feed contains a dependency, and this dependency is on nuget.org.

This is in my nuspec file:

<dependencies>
  <dependency id="log4net" version="[1.2.10]" />
</dependencies>

How can I indicate what NuGet should search in nuget.org for this dependency? I am currently getting:

Install-Package: it is not possible to resolve the dependency "log4net (= 1.2.10)".

When I perform a package installation through the package manager console in Visual Studio.

+4
source share
2 answers

I don't know exactly why, but specifying a parameter -Sourceduring installation seems to fix the problem.

0
source

. , "" , .

+3

Source: https://habr.com/ru/post/1615607/


All Articles