I'm developing a WPF
application and I'm using Xaml Islands
to display win10 UI components. For this I needed to create a UWP project where I can implement those components.
I'd like to write unit tests for my business logic, which is in the WPF project. I can't create a Unit Test App (Universal Windows)
, because it's not possible to add as a reference to this project the WPF app. So I tried to create a testing project, which targets .NET Core (tried MSTest Project
and xUnit Test Project
), but as I add to the references my WPF app, it shows the following error:
Project <UWP...> is not compatible with netcoreapp3.1 (.NETCoreApp,Version=v3.1). Project <UWP...> supports: uap10.0.18362 (UAP,Version=v10.0.18362)
This is because the WPF app references the UWP app, to display the win10 components.
So, any idea, how can I add unit testing project to my solution?