Udating to Prism 5.0/unity

Apr 23 at 4:42 PM
Hi,
two Problems while updating to Prism 5.0 with Nuget
a) It seems that Nuget installs the wrong Version for Unity (Unity 3.5.1404)
b) after downgrade Unity to 3.0.1304.1 i got a very strange error:
FileLoadException: The File 'unity.dll' is already loaded from a different place.

Any idea's
Thanks
Peter
Apr 23 at 5:26 PM
Hi Peter,

One possible cause could be that the first Nuget is still installed in the corresponding Project that raise the exception. Therefore, the error mentioned above is raised when trying to load the same assembly from another Nuget or assembly reference.

It would be helpful if you could describe which project is raising the error, and what Prism related assemblies it references. I suggest you verify every Nuget package installed in the solution and which projects would be installed on.

I hope this helped you,
Regards.

Gabriel Ostrowsky
https://blogs.southworks.net/gostrowsky
Apr 23 at 6:56 PM
Hi Gabriel,
thanks for the very fast answer.

As far as i can see, the error ist raised in UnityBootstrapper.
// In UnityBootstrapper:
    protected override void InitializeModules()
    {
        try 
        {
            base.InitializeModules();                // Error here
        } 
        catch (Exception e) 
        {
            MessageBox.Show(e.InnerException.ToString());
        }

        Logger.Log("Ribbon1 was successfully initialized.",
            Category.Info, Priority.None);
    }
To update the Projects i use Nuget/Update, so, the 'old' References should be removed and replaced by the new ones.

Peter
Coordinator
Apr 24 at 9:42 PM
We are working on updating Prism.UnityExtensions to reference the new Unity v3.5. Should be out soon.
-Francis
Coordinator
May 5 at 10:55 PM
Peter,

We just updated the Prism.UnityExtensions NuGet package to support Unity v3.5. Additionally the source package now also support Unity v3.5 at http://aka.ms/prism-wpf-code.

blaine
May 9 at 8:40 PM
Thanks
Peter