Solution can't load if hypen is used in the name

Author: dannythunderCreated Jun 8, 2021Updated Dec 2, 2025
  • .NET SDK Version: net6

Template version: Latest of todays date (8 June 2021)

Steps to Reproduce:

  1. Install template via terminal/cmd
  2. Create new project with hyphen ( - ) i.e. my-service

Project fails to load due to some naming in the .sln gets named my_service (underscore instead of hyphen)

edit: found that this is reported as a bug (and it's been a while): Dash - in sourceName gets changed to underscore _ inside files but not in file names

Source: ardalis/CleanArchitecture