'Could not load file or assembly 'System.Windows, Version=5.0.5.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e' or one of its dependencies

0

I get the error while trying to compile a WPF Project with Visual Studio 2013.

Error 3 Unknown build error, 'Could not load file or assembly 'System.Windows, Version=5.0.5.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)'

I have VS 2013/2015 and 2019 all the three installed on the same machine. Is this causing a conflict or mandating me to add reference to System.Windows - 5.0.5.

I do not see this error on machines with only VS 2013. How could it be possibly related or is there something else which I am missing?

Please note - The project is compiled against .NET Framework 4.0 and the System.Windows.dll which I have referred is also of version 4.0.0.0

Thanks in advance. Sandeep

c#
wpf
dll
visual-studio-2013
compiler-errors
asked on Stack Overflow Jul 9, 2020 by Sandepku • edited Jul 9, 2020 by Sandepku

0 Answers

Nobody has answered this question yet.


User contributions licensed under CC BY-SA 3.0