Reputation: 77
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
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