dotnet / dotnet/aspnetcore

New Item Templates and Implicit Global Usings

Open
#38,063 2 comments 1 reaction 0 assignees View on GitHub
area-mvc Author: Migration Bot :robot: feature-templates
Dominant language
C#
Stars
38.4k
Forks
10.9k
Avg merge
2d 6h
Merged PRs (30d)
290

Description

_This issue has been moved from [a ticket on Developer Community](https://developercommunity.visualstudio.com/t/New-Item-Templates-and-Implicit-Global-U/1561593)._

---
[severity:It's more difficult to complete my work]
I have a .NET 5 project (Microsoft.NET.Sdk.Web) which no longer adds the standard Usings clauses to new class files. It's as if the templates are assuming the new Implicit Global Usings feature is enabled.

I added disable to the .csproj but it did not fix the problem.

Can reproduce in a new .NET 5 ASP.NET project.

This is frustrating because now even the most basic of types don't have their using classes added to the files when generated.

I've been using VS 2022 for a while now, but believe this only recently started happening.

---
### Original Comments

#### Feedback Bot on 10/24/2021, 07:56 PM:

We have directed your feedback to the appropriate engineering team for further evaluation. The team will review the feedback and notify you about the next steps.

---
### Original Solutions
(no solutions)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.