Today, I encountered an error/bug on my Visual Studio. Working with the MVC project I am doing, while trying to add a scaffolding controller. I can’t seem to find the ‘Add Controller’ in the context menu of Controller folder.

Sometimes a simple Clean all, Rebuild all works easily. Sometimes it’s just a bug on Visual Studio itself and a simple reboot of VS or reboot of your machine will work. But this time all of these steps won’t work.

Then I found out that the .cproj file was messed up and the ProjectTypeGuids is empty


I checked all the Guids equivalent of all the projects in my solution.

and this now works:


Here’s the link where I got my project types.

I will also lists here the ones that I usualy use:

Project TypeGuid
Windows C#{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}
Windows VB.NET{F184B08F-C81C-45F6-A57F-5ABD9991F28F}
Windows Visual C++{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}
Web Application{349C5851-65DF-11DA-9384-00065B846F21}
Web Site{E24C65DC-7377-472B-9ABA-BC803B73C61A}
Windows Presentation Foundation (WPF){60DC8134-EBA5-43B8-BCC9-BB4BC16C2548}
ASP.NET 5{8BB2217D-0F2D-49D1-97BC-3654ED321F3B}
ASP.NET MVC 1{603C0E0B-DB56-11DC-BE95-000D561079B0}
ASP.NET MVC 2{F85E285D-A4E0-4152-9332-AB1D724D3325}
ASP.NET MVC 3{E53F8FEA-EAE0-44A6-8774-FFD645390401}
ASP.NET MVC 4{E3E379DF-F4C6-4180-9B81-6769533ABE47}
ASP.NET MVC 5{349C5851-65DF-11DA-9384-00065B846F21}