aspnetcore
aspnetcore copied to clipboard
Using minus signs in solution name renders solution uncompilable
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
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