I'm attempting to install a nuget package which has incorrectly specified one of it's dependencies. Common.Logging.Log4Net requires log4net = 1.2.10 however the nuget package specifies log4net >= 1.2.10. Even if I manually install the older version of log4net, nuget upgrades log4net to 1.2.11 when I install Common.Logging.Log4Net. How can I get nuget to bypass dependency resolution or at least prefer installed packages of a sufficient version?
How can I keep nuget from updating dependencies?
5.1k Views Asked by JeffreyABecker At
1
There are 1 best solutions below
Related Questions in NUGET
- NuGet - Given a type name or a DLL, how can I find the NuGet package?
- NuGet throws "Unable to satisfy package dependency constraints" but no dependency is required in the package description
- Can't build a project with Postsharp 4.1.14
- How to find a class in a list of Nuget packages
- How can I use net40 packages from NuGet when project's target framework is set to net45?
- How to disable automatic package installation / upgrade in Visual Studio?
- LocalPackageRepository returns IsLatestVersion=true for all packages
- Nexus Nuget Repository List Version Information
- Force NuGet to reference a .net framework 4.0 assembly in a 4.5 project?
- "mono nuget.exe push ..." produces invalid multipart PUT request
- NuGet keeps crashing Visual Studio 2013
- Nuget Package Update
- How do i reset nuget and start afresh?
- Can not download nuget packages
- nuget security - malware installed by nuget packages?
Related Questions in COMMON.LOGGING
- Log4Net Multiple Appenders, multiple tables having issues with config
- C# DLL - Loading seperate app.config file for Common.Logging (Log4Net)
- Configure Nhibernate log into file
- PostSharp and Common.Logging Logger declaration
- How can I keep nuget from updating dependencies?
- Logger does not work in newly created AppDomain
- Common.logging doesn't pick up the App.config in a class library
- Quartz.net - Could not load file or assembly Common.Logging Version=3.0.0.0
- Could not load file or assembly 'Common.Logging, Version=3.0.0.0'
- Common.Logging metadata on specific types of log targets
- Common.Logging "void Error( object message, Exception exception );" not logging the "Exception"
- Configuring Log4NetLoggerFactoryAdapter Programmatically (Trying Again)
- The type initializer for 'NHibernate.LoggerProvider' threw an exception
- How to enable Common.Logging.Log4Net
- Could not load type 'Common.Logging.Factory.AbstractCachingLoggerFactoryAdapter'
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
In order to bypass dependency resolution you can use the
-IgnoreDependenciesoption:You should be able to lock the package to a specific version by hand-editing the packages.config and setting the allowedVersions attribute to indicate the version span you want to allow.
Note that his will however not upgrade the version of the package at all even when explicitly updating the package.
See the nuget versioning documentation for more info on versioning.