© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•3y ago•
16 replies
palapapa

❔ What is the difference between .cshtml files and .razor files?

I couldn't find a definitive answer about this anywhere. They both use the razor syntax. Are they interchangeable? Are there features that are only available in .cshtml files and not in .razor files and vice versa?
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources
Recent Announcements

Similar Threads

Was this page helpful?

Similar Threads

❔ what is difference between _ and ()?
C#CC# / help
3y ago
razor pages vs .cshtml
C#CC# / help
3y ago
what is the difference between arrays,vectors and lists?
C#CC# / help
2y ago