Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for .NET 6 implicit usings #124

Open
JonHodgins opened this issue Jun 3, 2022 · 0 comments
Open

Support for .NET 6 implicit usings #124

JonHodgins opened this issue Jun 3, 2022 · 0 comments

Comments

@JonHodgins
Copy link

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

  1. Create a new project from a .NET6 template, or enable implicit usings in an existing .csproj
  2. 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant