You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add a Resources file (SampleProject.WebApi.Properties.Resources.resx).
Add a text file to the Resources.resx file.
Add an EntityFrameworkCore SQL DbContext 'SampleDbContext' with a 'Client' Entity
Run the Controller scaffolding tool
Select 'SampleDbContext' and 'Client' entity for a 'ClientsController'
Error
There was an error running the selected code generator:
'Could not find the resource "SampleProject.WebApi.Properties.Resources.resources" among the resources "" embedded in the assembly "SampleProject.WebApi", nor among the resources in any satellite assembles for the specified culture.
Perhaps the resources were embedded with an incorrect name.'
at Microsoft.EntityFrameworkCore.Design.Internal.DbContextOperations.CreateContext(String contextType)
at Microsoft.EntityFrameworkCore.Design.DbContextActivator.CreateInstance(Type contextType, Assembly startupAssembly, IOperationReportHandler reportHandler, String[] args)
at Microsoft.EntityFrameworkCore.Design.DbContextActivator.CreateInstance(Type contextType, Assembly startupAssembly, IOperationReportHandler reportHandler)
at Microsoft.VisualStudio.Web.CodeGeneration.EntityFrameworkCore.EntityFrameworkModelProcessor.TryCreateContextUsingAppCode(Type dbContextType, Type startupType)
Include provider and version information
Target framework: .NET 8.0
Operating system: Windows 11
IDE: Visual Studio 2022 17.9.6
The text was updated successfully, but these errors were encountered:
Include provider and version information
Target framework: .NET 8.0
Operating system: Windows 11
IDE: Visual Studio 2022 17.9.6
The text was updated successfully, but these errors were encountered: