Creating unit tests for .net5 projects

Trying to move from .Net4.5 to .Net5, so i have created my solution, which consists of folders called “Solution Items” and “src”.

I have managed to get 3 projects building using .NET 5. I had to create the projects as “Class Library (Package) – PREVIEW – A project template for creating a class library as a NuGet package that can target any platform”

Now i want to put my unit test projects into my solution. I believe that i have to use XUnit now, which has different attributes for tests.

But if i create a “Unit Test Project”, i cant reference my new .net5 projects.

Can someone point me in the right direction please.


Source: .net

Leave a Reply