When you want to share common Razor directives across multiple views, you would typically use the _______ file.

  • _ViewImports.cshtml
  • _Layout.cshtml
  • _ViewStart.cshtml
  • _Shared.cshtml
The correct file to share common Razor directives across multiple views is the "_ViewImports.cshtml" file. It allows you to define namespaces, tag helpers, and other common configurations that should apply to multiple views.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *