I migrated my MVC 4 project to MVC 5. I followed all the instructions on asp.net site from the article written by Rick Anderson. After removing GUId, I noticed that I can not add a view in my project again. Please how do I solve this problem. Currently I
would pasted the GUIDs that I have in my project so you can see and let me know if I deleted the wrong thing.
<ProjectTypeGuids>{349c5851-65df-11da-9384-00065b846f21};{fae04ec0-301f-11d3-bf4b-00c04f79efbc}</ProjectTypeGuids>
Error message displayed when I try to add a controller through scaffolding
There was an error running the selected code generator:
The parameter searchFolders does not contain any entries. Provide at least one folder to search files.
Parameter name: searchFolders’
Hi,
Yes, you are right. We should delete the MVC 4 project GUID and add the
<projecttypeguids
>
.
And about the error, it seems to miss parameter for action method. Please add breakpoint to debug it.
I removed the MVC4 Guid. Please help look that the segment of my config file that I pasted above am I missing something. I followed the steps in the link. Am even tired of looking at that link. Please if you have a template of how mvc5 <
projecttypeguids
>
.
should look like kindly paste it.
Hi,
It is my section in .csproj file, please refer to the projectTypeGuids node:
<ProjectGuid>{D6931D20-BA0E-414D-BB48-CC1AA2605B59}</ProjectGuid> <ProjectTypeGuids>{349c5851-65df-11da-9384-00065b846f21};{fae04ec0-301f-11d3-bf4b-00c04f79efbc}</ProjectTypeGuids>