Starts in:
2 DAYS
2 HRS
50 MIN
58 SEC
Starts in:
2 D
2 H
50 M
58 S
Open Closed

Error: Project Name is Invalid when creating a Blazor Server project using Suite #1706


User avatar
0
okains created

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)
  • User Avatar
    0
    okains created

    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

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    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

  • User Avatar
    0
    okains created

    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?

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    hi

    Please follow https://github.com/abpframework/abp/issues/9853

  • User Avatar
    0
    alper created
    Support Team Director

    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)

Made with ❤️ on ABP v9.1.0-preview. Updated on November 20, 2024, 13:06