RSB - 2.2.2.0 NuGet Package

11 views
Skip to first unread message

Matt Burton

unread,
Dec 27, 2011, 2:10:38 PM12/27/11
to rhino-t...@googlegroups.com
We had a lull in our release cycle and thought I'd upgrade us to the new version and I'm having some difficulty, unfortunately. Looks like there's a new version of log4net out there (1.2.11) that's causing issues. Since the RSB package doesn't specify an exact version of log4net it is automatically upgrading that dependency, and that's causing runtime binding issues. I'd like to avoid sprinkling binding redirects everywhere - they cause nothing but headaches going forward. Also, it looks like the new version of log4net is signed differently, which may be causing some of the problems - not sure. Would it be possible to update the package so that it specifies the exact log4net version or simply upgrade to the latest version of log4net altogether?

Or perhaps I need to be schooled in my NuGet-fu, in which case I'm all ears...

Thanks,
Matt


Corey Kaylor

unread,
Dec 27, 2011, 2:46:19 PM12/27/11
to rhino-t...@googlegroups.com
I vote for updating to the latest. I think I'm going to change things to depend on the nuget packages instead of a shared lib. There have been some improvements in this area that would have been painful for RSB due to supporting multiple framework version. This should make updating things much quicker and easier. Likely it will just pull them down rather than version them.

In the meantime, if you install the explicit version of log4net that RSB depends on it should resolve your immediate issues. I know it's a pain though.

--
You received this message because you are subscribed to the Google Groups "Rhino Tools Dev" group.
To view this discussion on the web visit https://groups.google.com/d/msg/rhino-tools-dev/-/Z_loI5Vzez0J.
To post to this group, send email to rhino-t...@googlegroups.com.
To unsubscribe from this group, send email to rhino-tools-d...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rhino-tools-dev?hl=en.

Matt Burton

unread,
Dec 27, 2011, 2:51:40 PM12/27/11
to rhino-t...@googlegroups.com
Sounds good for the future plans. Do you happen to know the magic incantation to get NuGet to behave in this circumstance? Or is this a manual hack-n-slash affair?

Thanks for your help,
Matt

Corey Kaylor

unread,
Dec 27, 2011, 3:48:31 PM12/27/11
to rhino-t...@googlegroups.com
It will require me putting explicit versions when listing the dependencies for a package.

Matt Burton

unread,
Dec 27, 2011, 3:53:27 PM12/27/11
to rhino-t...@googlegroups.com
Oh - right - sorry, should have clarified. I haven't been able to
track down how to get NuGet to pull down a package without it's
dependencies (or with specific dependency versions) either using the
GUI tooling or the command line - was throwing it out there to see if
you or anyone else knew offhand how to manage that.

Thanks,
Matt

Corey Kaylor

unread,
Dec 27, 2011, 4:02:03 PM12/27/11
to rhino-t...@googlegroups.com
I don't believe you can have Nuget not pull down dependencies. You will need to call Uninstall-Package for log4net for the current version.

Then you should be able to run.
Install-Package log4net -Version 1.2.10

Matt Burton

unread,
Dec 27, 2011, 4:16:05 PM12/27/11
to rhino-t...@googlegroups.com
That seems entirely too logical. It has to be more complicated than that. :)

Thanks I'll give it a shot,
Matt


Matt Burton

unread,
Dec 27, 2011, 8:31:08 PM12/27/11
to rhino-t...@googlegroups.com
FYI - NuGet shut me down at uninstalling log4net as it is a dependency
- wound up having to manually hack the packages file in order to get
it to work, but it is working now, in case that helps anyone else...

Thanks,
Matt

Corey Kaylor

unread,
Dec 27, 2011, 8:54:24 PM12/27/11
to rhino-t...@googlegroups.com
Sorry for the inconvenience. Glad you worked through it.
Reply all
Reply to author
Forward
0 new messages