If you wish to control the scope of your Tag Helpers (i.e., which views or pages they are available in), which file should you modify?

  • Startup.cs
  • appsettings.json
  • _ViewImports.cshtml
  • Program.cs
To control the scope of your Tag Helpers, you should modify the _ViewImports.cshtml file. This file is where you can import namespaces and specify which Tag Helpers should be available globally across your views or pages.
Add your answer
Loading...

Leave a comment

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