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

On dotnet new classlib instead of creating a useless Class1.cs create a file named after the directory the file was created in. #45568

Open
claytonweaver opened this issue Dec 19, 2024 · 3 comments
Labels
untriaged Request triage from a team member

Comments

@claytonweaver
Copy link

Is your feature request related to a problem? Please describe.

A clear and concise description of what the problem is.

mkdir ApiClient/
cd ApiClient
dotnet new classlib
creates ApiClient.cs

Describe the solution you'd like

mkdir ApiClient/
cd ApiClient
dotnet new classlib
creates ApiClient.cs instead of useless garbo Class1.cs that no one will ever use ever in their life.

Additional context

Add any other context or screenshots about the feature request here.

Copy link

I couldn't figure out the best area label to add to this issue. If you have write-permissions please help me learn by adding exactly one area label.

@dotnet-issue-labeler dotnet-issue-labeler bot added the untriaged Request triage from a team member label Dec 19, 2024
Copy link

I couldn't figure out the best area label to add to this issue. If you have write-permissions please help me learn by adding exactly one area label.

@KalleOlaviNiemitalo
Copy link
Contributor

The resulting code would be likely to violate CA1724: Type names should not match namespaces.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
untriaged Request triage from a team member
Projects
None yet
Development

No branches or pull requests

2 participants