Aspnetcore: [Preview 6] Blazor (Server Side) overriding identity via scaffolding throws error

Created on 13 Jun 2019  路  5Comments  路  Source: dotnet/aspnetcore

[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


External area-blazor

Most helpful comment

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

All 5 comments

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

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.

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

@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

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

Was this page helpful?
0 / 5 - 0 ratings