No delete option when right clicking on a class inside models in asp.net core mvc project in visual studio 2022

Viewed 29

After creating a class inside models in asp.net core mvc app, I tried to delete that class by right clicking on class name in solution explorer but there is no delete option or rename option. I'm using visual studio 2022.

Here is the screenshot when right click on model class name: https://i.postimg.cc/s2NSLW0M/Untitled.png

1 Answers

The option to delete or rename a class is not available while the web application is running. After stopping the application the options are available.

Related