implicit usings

A project setting that makes the SDK add common using directives, such as System and System.Linq, to every file automatically.

In more detail

Turn it on with <ImplicitUsings>enable</ImplicitUsings>; web projects also get the ASP.NET Core hosting namespaces. It is generated as global usings, so each file lists only the usings special to it.

Example

<ImplicitUsings>enable</ImplicitUsings>

Related terms

Taught in

References