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

[Preview 6] Blazor (Server Side) overriding identity via scaffolding throws error #11179

Closed
muheebhussain opened this issue Jun 13, 2019 · 5 comments
Assignees
Labels
area-blazor Includes: Blazor, Razor Components External This is an issue in a component not contained in this repository. It is open for tracking purposes.

Comments

@muheebhussain
Copy link

[Preview 6] Blazor Server Side overriding identity via scaffolding throws an error.

dotnet 3.0.100-preview6-012264
  1. Upgrade to .net core 3.0.100-preview6-012264
  2. Create a new asp.net core web application project, select server side blazor.
  3. Change Identity to individual user account

After project creation right click Areas/Identity folder, Add New Scaffold Item, Override all files throws error.
image

@Eilon Eilon added the area-blazor Includes: Blazor, Razor Components label Jun 13, 2019
@mihaimyh
Copy link

mihaimyh commented Jun 14, 2019

Microsoft.VisualStudio.Web.CodeGeneration.Design nuget package must be updated to 3.0.0-preview6 also.

@sidebarpronto
Copy link

This error occurs when the page layout field is left blank. You can get around it by creating a dummy layout page and using that as your layout file. But the bigger problem is once the scaffolding templates are generated your Blazor project wont run. I created #11228.

@danroth27 danroth27 self-assigned this Jun 14, 2019
@danroth27 danroth27 added the External This is an issue in a component not contained in this repository. It is open for tracking purposes. label Jun 14, 2019
@danroth27 danroth27 added this to the 3.0.0-preview9 milestone Jun 14, 2019
@danroth27
Copy link
Member

This specific error should now be fixed with the latest preview version of Visual Studio.

@muheebhussain
Copy link
Author

muheebhussain commented Aug 25, 2019

@danroth27 Still not able be overriding identity with scaffolding

dotnet 3.0.100-preview8
Upgrade to .net core 3.0.100-preview8-
Create a new asp.net core web application project, select blazor app.
Change Identity to individual user account
After project creation right click Areas/Identity folder, Add New Scaffold Item, Override all files throws error.

image

@Gpd1969
Copy link

Gpd1969 commented Aug 29, 2019

I have this same issue. I've updated to the latest Version of Visual Studio Preview and Core framework as well.

net core 3.0.100-preview8
Microsoft Visual Studio Community 2019 Preview
Version 16.3.0 Preview 2.0
VisualStudio.16.Preview/16.3.0-pre.2.0+29209.152

@ghost ghost locked as resolved and limited conversation to collaborators Dec 3, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-blazor Includes: Blazor, Razor Components External This is an issue in a component not contained in this repository. It is open for tracking purposes.
Projects
None yet
Development

No branches or pull requests

6 participants