1

I have a project targeting .NET 5 asp.net Core in VS 2019.

I keep seeing reference to a project type that seems to be missing from my instance, "MSTest Test Project (.NET Core)"

The previous .NET project type isn't compatible with Core.

Is there a something specific in the VS install I need to go back and select?

Underground
  • 127
  • 5
  • I can't really tell what it is you're asking. Is your main project trying to reference MSTest in some way? [MSTest](https://www.nuget.org/packages/MSTest.TestFramework/) is a nuget package. You should only need to have this nuget included in your Test Project. – Timothy G. Sep 18 '21 at 21:26
  • Can't you find the library? You can refer to this: https://stackoverflow.com/questions/64874414/how-to-create-net-5-0-class-library-project-in-visual-studio-2019-16-8-1 – Tupac Sep 20 '21 at 08:10
  • In VS, Add Project, the "MSTest Test Project (.NET Core)" project type is missing. – Underground Sep 20 '21 at 18:55

1 Answers1

0

Well, apparently they just renamed it.

Starting in Visual Studio 2019 version 16.9, the MSTest project template name changed from MSTest Unit Test Project (.NET Core) to Unit Test Project.

Found at

Underground
  • 127
  • 5