Search code examples
unit-testingvisual-studio-2017mstest

"Create Unit Test" context menu option missing in Visual Studio 2017 (for VB.NET only)


I created a solution with following projects:

  • A web application (asp.net) using C#
  • A web application (asp.net) using VB.NET
  • A unit test application using C# (tried with VB.NET also).

The "Create Unit Test" context menu option is missing in Visual Studio 2017 for VB.NET but is available for C#.

Does anyone know what I'm missing. Do I need to do anything special to get that option in projects using VB.NET language?

I'm using Visual Studio Professional 2017.

C# context menu enter image description here

VB.NET context menu enter image description here


Solution

  • This option was removed for VB.Net in an earlier release of Visual Studio (VS2015, or earlier) even though the option had been there (I remember using it in VS2018, for sure)