common.logging - How can I keep nuget from updating dependencies? -



common.logging - How can I keep nuget from updating dependencies? -

i'm attempting install nuget bundle has incorrectly specified 1 of it's dependencies. common.logging.log4net requires log4net = 1.2.10 nuget bundle specifies log4net >= 1.2.10. if manually install older version of log4net, nuget upgrades log4net 1.2.11 when install common.logging.log4net. how can nuget bypass dependency resolution or @ to the lowest degree prefer installed packages of sufficient version?

in order bypass dependency resolution can utilize -ignoredependencies option:

install-package -ignoredependencies thepackagename

you should able lock bundle specific version hand-editing packages.config , setting allowedversions attribute indicate version span want allow.

<package id="common.logging.log4net" version="1.2.10" allowedversions="[1.2,1.2.10]" />

note not upgrade version of bundle @ when explicitly updating package.

see nuget versioning documentation more info on versioning.

nuget common.logging

Comments

Popular posts from this blog

How do I check if an insert was successful with MySQLdb in Python? -

delphi - blogger via idHTTP : error 400 bad request -

postgresql - ERROR: operator is not unique: unknown + unknown -