How to reference a WPF .NET Core dll in WPF .net framework

0

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.

enter image description here

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)'

c#
.net
.net-core
.net-framework-version
asked on Stack Overflow May 29, 2020 by Chaya • edited May 29, 2020 by Magnetron

0 Answers

Nobody has answered this question yet.


User contributions licensed under CC BY-SA 3.0