Prism 5.0 Microsoft.Practices.Prism.Composition and Microsoft.Practices.Prism.Mvvm.Desktop.dll mixe mscorlib References dependency

Topics: Prism v4 - WPF 4
Feb 19, 2015 at 8:54 AM
Hello,
In our team, we want build solution with all errors + warnings fixed.
The only one remaining warning concerns this one:
"warning MSB3277: Found conflicts between different versions of the same dependent assembly"
After a Msbuild with diag log enabled, they are a couple of conflicts warnings:
There was a conflict between "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" and "mscorlib, Version=2.0.5.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e, Retargetable=Yes".
There was a conflict between "System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" and "System, Version=2.0.5.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e, Retargetable=Yes". "System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" was chosen because it was primary and "System, Version=2.0.5.0, Culture=neutral,_ ...
After investigating the References dependency, I discovered stange dependency among Prism 5.0 packages

Here are the screen captures of 2 differents Prism packages referencing different version of MsCorLib: https://onedrive.live.com/redir?resid=2D1F299DEB45D4A3!1101036&authkey=!AIVdICSFXPaY488&v=3&ithint=photo%2cpng

Would be possible to reference the same version of MsCorLib 4.0.0.0 ?

Thanks in advance for any help
-Vince

ps. There is no Prism v5 in the Topic's List :-)
Feb 20, 2015 at 1:59 PM
Did you use Nuget to install Prism? I haven't experienced this issue, but if you manually added it you may to need add a binding redirect for SharedInterfaces.

<runtime>
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
  <dependentAssembly>
    <assemblyIdentity name="Microsoft.Practices.Prism.SharedInterfaces" publicKeyToken="31bf3856ad364e35" culture="neutral"/>
    <bindingRedirect oldVersion="0.0.0.0-1.1.1.0" newVersion="1.1.1.0"/>
  </dependentAssembly>
</assemblyBinding>
</runtime>
Feb 20, 2015 at 2:03 PM
Hello Brian,

Yes, we use Nuget and the binding redirect are present.

txs anyway

-Vince