GUILHERME SIMAO COSTA
GUILHERME SIMAO COSTA

Reputation: 77

Is it possible to test .NET Framework project with xUnit .NET Core

I have an ASP.NET Framework v4.5.2 project. Can I use xUnit with .NET Core v2.0 to test it?

If yes, is it recommended?

If not, what alternatives I have?

Upvotes: 4

Views: 2494

Answers (1)

Poat
Poat

Reputation: 376

No,

If the application references things like "System.Windows.Forms" - the .netcore Unit Test project won't be able to load it.

We just ran into this issue- and are converting our .netcore unit test project to match the .net 4.5.2 of our production assemblies.

Upvotes: 1

Related Questions