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

Using template generates projects with extra underscore. #484

Open
richardvaldiviesomacias opened this issue Dec 22, 2022 · 3 comments
Open
Labels
bug good first issue help wanted .NET Pull requests that update .net code

Comments

@richardvaldiviesomacias
Copy link

richardvaldiviesomacias commented Dec 22, 2022

  • .NET SDK Version:
    7.0.101
    Steps to Reproduce:
  1. Run the command: dotnet new clean-arch -n DotnetConf.2022Edition
  2. Try to open in Visual Studio or Rider shows loading errors.

I checked the solution file, and all the projects paths show DotnetConf._2022Edition, which is ok since the namespaces should not start with a number, but the whole solution is not working correctly because the solution file does not have that extra underscore.

@davidhenley
Copy link
Contributor

davidhenley commented Jan 3, 2023

Reproduced. 7.0.101 Mac M1

dotnet new clean-arch -n DotnetConfDemo fixes

@richardvaldiviesomacias
Copy link
Author

Thanks David. I just wanted to show that the year on the name of project can produce a bad name for the solution and projects.

@ardalis
Copy link
Owner

ardalis commented May 1, 2023

Yeah, confirmed:
image

Probably because "2022..." isn't a valid name in C# so it makes it one by adding the "_" prefix but apparently not in a consistent manner. Not sure if this used to work or not, but we should either fix it or document it.

@ardalis ardalis added bug help wanted good first issue .NET Pull requests that update .net code labels May 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug good first issue help wanted .NET Pull requests that update .net code
Projects
None yet
Development

No branches or pull requests

3 participants