I'm publishing a WPF app using Visual Studio 2015. After the publish, when I click the .application
file, it throws this error:
Unable to install or run the application. The application requires that assembly System.Windows.Interactivity Version 4.5.0.0 be installed in the global assembly cache (GAC) first.
The version of System.Windows.Interactivity
in my app is 4.0.0.0. So why would it be asking for 4.5.0.0? I can't even find that version on the web.
Based on this question, I updated my app.config
to have this, to no avail:
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<dependentAssembly>
<assemblyIdentity name="System.Windows.Interactivity" publicKeyToken="31bf3856ad364e35" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-4.0.0.0" newVersion="4.5.0.0" />
</dependentAssembly>
</assemblyBinding>
In the Error List tab of Visual Studio, it has the following warning:
Found conflicts between different versions of the same dependent assembly that could not be resolved. These reference conflicts are listed in the build log when log verbosity is set to detailed.
What am I doing wrong? Thanks.