Eric Snyder
Eric Snyder

Reputation: 1924

MSTest for C# project targeting .Net version 5?

I have a .Net desktop project that targets .net V5. I added a MSTest project to write some tests but the highest version of .Net that I can target seems to be 4.8. How do I target .net 5.0 on my testing project? My project that I need to test references .Net 5.

enter image description here

Upvotes: 2

Views: 258

Answers (1)

Athanasios Kataras
Athanasios Kataras

Reputation: 26362

You need to add a .net core test project.

.net 5.0 is not .net framework. Since you added a framework project, it only allows you to choose up to 4.8 which is the latest .net framework version.

You can find a guide for the console version creation here: create test project

Or follow the visual studio guide

Upvotes: 2

Related Questions