Because many of Rhino Mocks public member exposes IInvocation interface as
either a return type of a parameter. For example,
IExpectation.ReturnOrThrow. In this case ILMERGE has not choice but make it
public.

I thought this is long existing and well known issue so that the past
versions had unmerged packages for users to download to avoid those issues.

In addition to dropping the unmerged package, 3.6 also dropped the support
for .net 2.0. So .net 2.0 project using LinqBridge has no way to upgrade to
3.6.

On Tue, May 25, 2010 at 7:51 PM, sbohlen <[email protected]> wrote:

> Shouldn't the merged Castle assembly have been ILMERGEd with the flag
> set to make them only visible internally to the rest of the
> Rhino.Mocks.dll assembly (the /internalize flag)?  AFAIK this would/
> should prevent just the collision(s) being described here, shouldn't
> it --?
>
> -Steve B.
>
> On May 25, 7:24 am, Tim Barcz <[email protected]> wrote:
> > Not following...can you rephrase?
> >
> > On Tue, May 25, 2010 at 8:24 AM, Oskar Berggren <
> [email protected]>wrote:
> >
> >
> >
> > > I have built it myself to get the unmerged version. Problem solved.
> >
> > > However, for 3.5 several builds were published. Would it be possible
> > > to do the same for 3.6?
> >
> > > /Oskar
> >
> > > 2010/5/20 Oskar Berggren <[email protected]>:
> > > > Hi,
> >
> > > > I'm working to upgrade the dependencies for some projects. While
> > > > upgrading to NHibernate 2.1.2, Castle.DynamicProxy2 was upgraded to
> > > > 2.1.
> >
> > > > This causes unit tests to fail with:
> > > > System.TypeInitializationException : The type initializer for
> > > > 'Rhino.Mocks.MockRepository' threw an exception.
> > > > ----> System.IO.FileLoadException : Could not load file or assembly
> > > > 'Castle.DynamicProxy2, Version=2.0.3.0, Culture=neutral,
> > > > PublicKeyToken=407dd0808d44fbdc' or one of its dependencies. The
> > > > located assembly's manifest definition does not match the assembly
> > > > reference. (Exception from HRESULT: 0x80131040)
> >
> > > > We are using Rhino.Mocks 3.5.
> >
> > > > To try to resolve this, I upgraded Rhino.Mocks to 3.6. Now
> compilation
> > > > fails with:
> > > > The type 'Castle.Core.Interceptor.IInvocation' exists in both '...
> > > > \Rhino.Mocks.dll' and '...\Castle.Core.dll'.
> > > > whenever a unit tests refers to IInvocation. We have a bunch of unit
> > > > tests that does that.
> >
> > > > From what I can tell, Rhino.Mocks 3.6 is only available with merged
> > > > Castle.Core (filesize 309 kB). Before we were using an unmerged
> > > > version I think (filesize 124 kB).
> >
> > > > Any ideas how to resolve this?
> >
> > > > /Oskar
> >
> > > --
> > > You received this message because you are subscribed to the Google
> Groups
> > > "Rhino.Mocks" group.
> > > To post to this group, send email to [email protected].
> > > To unsubscribe from this group, send email to
> > > [email protected]<rhinomocks%[email protected]>
> <rhinomocks%[email protected]<rhinomocks%[email protected]>
> >
> > > .
> > > For more options, visit this group at
> > >http://groups.google.com/group/rhinomocks?hl=en.
> >
> > --
> > Tim Barcz
> > Microsoft C# MVP
> > Microsoft ASPInsiderhttp://timbarcz.devlicio.ushttp://
> www.twitter.com/timbarcz
> >
> > --
> > You received this message because you are subscribed to the Google Groups
> "Rhino.Mocks" group.
> > To post to this group, send email to [email protected].
> > To unsubscribe from this group, send email to
> [email protected]<rhinomocks%[email protected]>
> .
> > For more options, visit this group athttp://
> groups.google.com/group/rhinomocks?hl=en.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Rhino.Mocks" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected]<rhinomocks%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/rhinomocks?hl=en.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Rhino.Mocks" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rhinomocks?hl=en.

Reply via email to