Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can't create new class "The system cannot find the path specified"

Just started with ASP.NET MVC with Visual Studio 2019. I cloned a project from GitHub, and it runs fine. However, when I try to add a class I get the error message saying "The system cannot find the path specified".

I have looked this up but can't find any similar questions.

I am trying to run a default ASP.NET MVC project, there have been no changes to the code. I only cloned the project, so I'm guessing there had to be some issues during the fetch maybe?

like image 303
Ryan Sangha Avatar asked Jan 25 '23 20:01

Ryan Sangha


1 Answers

Open the project using windows explorer and validate that the folder that you trying to add the new class exists, if not just create it and then clean visual studio solution and rebuild it, besides refreshing the solution explorer.

If the previous solution didn't work, then remove .vs folder (after closing the visual studio) and re-open the solution

like image 66
Mahmoud Heretani Avatar answered Jan 31 '23 02:01

Mahmoud Heretani