Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ASP.NET Core 7 MVC project Area folder empty [duplicate]

I just created an ASP.NET Core 7 MVC web project with local identity in Visual Studio 2022. Once I have done the migration of the database, now I can register/login, but I am surprised I can not find identity related code files in directory Areas/Identity/Pages.

I have attached a screenshot for better understanding. Can anyone tell me where those files are located? How is this even working?

Screenshot of project

Full Screen shot

I have already tried to check hidden file but nothing exists. Any ideas?

like image 919
SJj Avatar asked Sep 16 '25 08:09

SJj


1 Answers

The source code for pages can be found at the github, for example the Login.cshtml (or the account management in Account/Manage/Index.cshtml). From the code (see the usage of IdentityDefaultUIAttribute for example on LoginModel in Login.cshtml.cs) and .csproj file (see the RazorGenerate tags) it seems that the Razor templates are actually compiled and distributed as part of the assembly (you can view the C# classes with decompiler).

like image 140
Guru Stron Avatar answered Sep 17 '25 22:09

Guru Stron