I am trying to create a Blazor Server project using ABP Suite. I consistently get Project Name Invalid Errors, and have tried different project names but still the same error.
I have attached screenshots of my input, and also of the exception thrown by the CLI. Can you let me know if this is a bug or if I am doing something wrong? Need to get this project created as soon as possible.
Thanks,
Karim
Check the docs before asking a question: https://docs.abp.io/en/commercial/latest/ Check the samples, to see the basic tasks: https://docs.abp.io/en/commercial/latest/samples/index The exact solution to your question may have been answered before, please use the search on the homepage.
If you're creating a bug/problem report, please include followings:
- ABP Framework version: v4.4.0
- UI type: Blazor
- DB provider: EF Core
- Tiered (MVC) or Identity Server Separated (Angular): no
- Exception message and stack trace: attached
- Steps to reproduce the issue:"
5 Answer(s)
-
0
It seems that you added this validation in 4.4 :
https://github.com/abpframework/abp/issues/8959
and I am guessing you are validating out the keyword 'Blazor' for project names? When I changed from Blazor, to 'BZ' then the project was created.
I can create a project using VS with the keyword 'Blazor' in the project name. This took longer than it should have to work through, can you confirm that this is a bug in your code or if I have missed something?
Thanks,
Karim
-
0
hi okains
The Blazor is not allowed for the project name, but I am considering changing the contains to be equal.
https://github.com/abpframework/abp/blob/d21fe36074c79e1e02a9a85bb2aa1299aab909af/framework/src/Volo.Abp.Cli.Core/Volo/Abp/Cli/Utils/ProjectNameValidator.cs#L22 https://github.com/abpframework/abp/blob/d21fe36074c79e1e02a9a85bb2aa1299aab909af/framework/src/Volo.Abp.Cli.Core/Volo/Abp/Cli/Utils/ProjectNameValidator.cs#L52
-
0
Hi,
Yes, I figured that out after experimenting a few times and just settled on using BZ instead. However 'Blazor' is and should be allowed in project names. If you look at a lot of the online tutorials / documentation they use Blazor in the project name extensively. Is there a reason why you decided to make it invalid in this case?
-
0
hi
Please follow https://github.com/abpframework/abp/issues/9853
-
0
Sorry but Blazor is a keyword being used in Suite template replacer. When you use the keyword Blazor, you may have some compile issues in Blazor project. So you specify a different name (Blazzor)