Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add scaffolded Blazor Identity to Aspire Starter App fails with 'value cannot be null or empty Parameter name: projectRelativePath' #3023

Open
tomg2015 opened this issue Oct 16, 2024 · 1 comment

Comments

@tomg2015
Copy link

Adding a scaffolded Blazor Identity to the Aspire Starter App fails with 'value cannot be null or empty Parameter name: projectRelativePath'.

The problem may be due to the presence of '.' in the Web project name, since adding scaffolded Identity to another simple Blazor Web App in the same solution succeeds.

Steps to Reproduce

  1. New solution: .NET Aspire Starter App, named 'Test1'
    Image
    With options:
    Image
    Produces:
    Image

  2. Add Scaffolded Blazor identity to Test1.Web project:
    Image

  3. Create fails with this error:
    Image
    Code generation seems to be using the wrong path:
    Image

  4. Add a further simple 'Blazor Web App' project 'BlazorApp1' to solution
    Image

  5. Add Scaffolded Blazor identity to BlazorApp1 project:
    Image

Success:
Image

Include provider and version information

Image

Operating system: OS Name Microsoft Windows Server 2019 Standard
Version 10.0.17763 Build 17763

IDE: Microsoft Visual Studio Community 2022
Version 17.12.0 Preview 2.1
VisualStudio.17.Preview/17.12.0-pre.2.1+35323.107

@deepchoudhery
Copy link
Member

The current scaffolders in VS are not supported for aspire apps. Will take a look at this bug soon but for a workaround, please try our new command-line scaffolding tool, dotnet-scaffold

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants