Search code examples
c#asp.net-mvcumbracoumbraco7

Why aren't Umbraco Templates (Views) part of the Solution/Project in Visual Studio?


I typically work on ASP.NET Core MVC projects, but am currently working on an Umbraco site. A difference I noticed, and don't understand, is that the .cshtml files in the Views folder (which are the Umbraco Templates) are only visible in the Folder View of the Solution Explorer. Why aren't they included in the project and visible in the normal Solution Explorer view like they are in a normal MVC project?

Example:

Folder View:

enter image description here

Normal Solution Explorer View:

enter image description here


Solution

  • It's typically because no one added them ;-) Joking aside, views can also be created via the Umbraco back office (in the browser) in which case the VS project doesn't really know about them until they are included.