-
Notifications
You must be signed in to change notification settings - Fork 10.5k
Closed
Labels
DoneThis issue has been fixedThis issue has been fixedValidationThis issue is used to track validation effortsThis issue is used to track validation effortsarea-mvcIncludes: MVC, Actions and Controllers, Localization, CORS, most templatesIncludes: MVC, Actions and Controllers, Localization, CORS, most templatesfeature-mvc-razor-viewsFeatures related to the Razor view engine for Razor pages and MVC viewsFeatures related to the Razor view engine for Razor pages and MVC views
Milestone
Description
With C# 10 introducing support for global usings declarations and the SDK now implicitly adding global usings for projects targeting .NET 6 we need to verify that the Razor compiler honors any global usings (whether set via the SDK or in the project) in the code it generates.
We expect this will "just work" so this issue is to ensure we verify that.
Assuming this is verified we can update the project templates to not explicitly add usings in .cshtml/.razor files if they're already added by the SDK.
Metadata
Metadata
Assignees
Labels
DoneThis issue has been fixedThis issue has been fixedValidationThis issue is used to track validation effortsThis issue is used to track validation effortsarea-mvcIncludes: MVC, Actions and Controllers, Localization, CORS, most templatesIncludes: MVC, Actions and Controllers, Localization, CORS, most templatesfeature-mvc-razor-viewsFeatures related to the Razor view engine for Razor pages and MVC viewsFeatures related to the Razor view engine for Razor pages and MVC views