aspnetcore icon indicating copy to clipboard operation
aspnetcore copied to clipboard

Using minus signs in solution name renders solution uncompilable

Open nielsabels opened this issue 8 years ago • 1 comments

Environment:

  • Windows 10 Pro
  • dotnet core 2.1.300-preview1-008174
  • Blazor 0.2.1
  • VisualStudio.15.Preview/15.7.0-pre.4.0+27617.1

Repro steps:

  • Create a blazor stand-alone (or hosted) app from the latest templates, and name the solution 'poc-blazor-app'
  • Build with dotnet build poc-blazor-app

Expected:

  • Namespace of generated classes is PocBlazorApp
  • Blazor app builds

Actual:

  • Namespace of generated classes is poc-blazor-app
  • Build fails

Additional info:

The namespace would become Poc_Blazor_App in both a:

  • .NET Core console project
  • ASP.NET Core Web Application -> Web Application project

nielsabels avatar Apr 23 '18 19:04 nielsabels

Yes, this is a known issue that will be fixed in the next Blazor update. For now please use project and solution names without hyphens.

Closing as a duplicate of aspnet/Blazor#291

danroth27 avatar Apr 23 '18 19:04 danroth27