From Visual Studio 2019, I've created a WPF project in .NET Core. The project name is test1
.
The dll of test1
project is added in WPF .NET framework from Visual Studio 2017 using reference option.
After adding dll, I tried to call MainWindow from Test project in .NET Framework
var test = new Test.MainWindow()
test.SHowdialog()
When I tried to run it, I got the below error. Can anyone please help me to resolve this issue?
System.IO.FileLoadException: 'Could not load file or assembly 'System.Runtime, Version=4.2.2.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)'
User contributions licensed under CC BY-SA 3.0