Using Nuget and log4net in one dll that is used across a number of solutions
I have a dll called General which uses log4net. This dll is used in many other solutions. I would like to use Nuget. But if I add a nuget package for gen开发者_C百科eral to use, that package appears on whichever solution I am in. But there are 12 different solutions that use general. So it does not make sense that General's reference should point to a package in a speficic solution. Am i missing something? Trying to get the NuGet yumminess, but not feelig the love.
It sounds like you need to package up 'General' as a Nuget package of its own. That way you can declare the dependency on log4net and it will use the same log4net as all the other packages you use in each solution. You can run your own Nuget server easily to host the packages you develop internally.
精彩评论