-
Notifications
You must be signed in to change notification settings - Fork 254
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conflicting Castle reference #86
Comments
I'm happy for someone to setup a non-merged version in the build. I'd like to keep the ilmerged package as well though, as both approaches have their own drawbacks (example). To work around the current issue you could try using a namespace alias. |
@dtchepak, I just hit this same problem myself, interestingly I was doing the exact same thing @gregnehus was trying to do in his SO question. Perhaps there's a way to make NSubstitute's usage of IProxyTargetAccessor internal, such that the type doesn't have to be visible to consuming projects? I see that you're explicitly listing it in your ilmerge.exclude file, although never having done any IL merging myself, I have no idea what the implications are either way. |
Per this blog post (http://www.davidarno.org/c-howtos/aliases-overcoming-name-conflicts-part-2-extern-alias/), apparently the work around is to use |
Closing as NSubstitute 3.0 no longer ilmerges dependencies. 2.x works with |
It would be great if the nuget package depended on Castle.Core and the aforementioned library was not merged into NSub's dll. This issue was referenced at: http://stackoverflow.com/questions/12266279/how-to-fix-type-exists-in-both-assemblies-failure-when-using-dynamicproxy-type
The text was updated successfully, but these errors were encountered: