Udating to Prism 5.0/unity

Apr 23, 2014 at 5:42 PM
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
Apr 23, 2014 at 6: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,

Gabriel Ostrowsky
Apr 23, 2014 at 7: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()
            base.InitializeModules();                // Error here
        catch (Exception e) 

        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.

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

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.

May 9, 2014 at 9:40 PM