Quantcast
Channel: Active questions tagged blazor - Stack Overflow
Viewing all articles
Browse latest Browse all 4839

Add new scaffolded item is missing on a Razor Component Library in a maui blazor hybrid application (.NET 8.0)

$
0
0

I am following the setup and the sample app provided by Microsoft to run a maui and blazor web hybrid app.

I wanted to add a database and EF core to the app so I followed the first 4 minutes of this tutorial hoping that it would work.

I added a model to the MauiBlazorWeb.shared Razor Component Library (RCL) like this Employee.cs. Then I installed the NuGet packages EFcore, EFcore.design, EFcore.SqlServer to the shared RCL. However, after right clicking the Component folder, there's no option to 'Add new scaffolded item'pic

Is there a problem as to why there's no 'Add new scaffolded item' to the shared RCL?

I looked for some solutions but the setups where done on either maui or blazor, but not the hybrid method. I also tried adding a nuget package Microsoft.DotNet.Scaffolding.Shared but it didnt work.


Viewing all articles
Browse latest Browse all 4839

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>