You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using Add New File for C# classes and interfaces will add usings from the System namespaces even when implicit usings is enabled. I believe these can be overridden by adding custom templates, but this extension should ideally be able to detect if implicit usings are enabled and then omit them.
Steps to reproduce
Create a new project from a .NET6 template, or enable implicit usings in an existing .csproj
Use Add New File to add a C# class or interface
Expected behavior:
The new class/interface contains no using statements.
Actual behavior:
The new class/interface contains using statements for System, System.Collections.Generic, System.Linq, System.Text, and System.Threading.Tasks.
The text was updated successfully, but these errors were encountered:
Description
Using Add New File for C# classes and interfaces will add usings from the System namespaces even when implicit usings is enabled. I believe these can be overridden by adding custom templates, but this extension should ideally be able to detect if implicit usings are enabled and then omit them.
Steps to reproduce
Expected behavior:
The new class/interface contains no using statements.
Actual behavior:
The new class/interface contains using statements for System, System.Collections.Generic, System.Linq, System.Text, and System.Threading.Tasks.
The text was updated successfully, but these errors were encountered: