Skip to content

upgrade to fw 4.6.1 and upgrade Unity v4.0.0.0 #2

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

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

RustyChain
Copy link

It was just a simple fw and package update and I'd be happy to release a new version on nuget.

Thanks advanced,

Rusty

@isaacabraham
Copy link
Owner

Hi!

Thanks a lot for this PR. Just a quick question - given that there don't appear to be any code changes - what's the stop leaving it at the current version? You should still be able to use Unity 4 with it, you probably just need a binding redirect or two?

/// Initializes a new instance of the CollectionFacade class.
/// </summary>
public UnityCollectionFacade(IUnityContainer target)
{
resolvedTypes = target.ResolveAll<T>();
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmmm. Slight change in behaviour here - is there a reason behind this? I suspect what you're proposing is to get the latest version all the time?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Exactly, resolvedTypes is a local list of the registrations, but will not sync with the container after adding a new registration.

@RustyChain
Copy link
Author

Hi Isaac,
Thanks for the review, I've tried to redirect with the assembly binding , but somehow the container.AutomapAssemblies extension method still complaining about the lower version:
Error CS0012 The type 'IUnityContainer' is defined in an assembly that is not referenced. You must add a reference to assembly 'Microsoft.Practices.Unity, Version=2.1.505.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'.

That was only the reason behind of the FW upgrade.

@isaacabraham
Copy link
Owner

Hi

I want to accept this PR but really first want to see a repro of this issue with the binding redirect to prove that it's necessary. Can you whip up something really small that shows the problem?

At any rate, the fix to the Facade class is definitely a good idea and should go in.

@isaacabraham
Copy link
Owner

@RustyChain I know it's been months, but if you can you give me a simple repro on the binding redirects issue I'll be happy to accept this PR - I just can't repro it myself.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants