Single layer app with DbMigrator project #12872
Unanswered
StefanIvovic
asked this question in
Q&A
Replies: 1 comment 3 replies
-
Can you try again with the code below?
Reference: |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi, i really like using DbMigrator in layered web app solution and i was trying to create it in Single layer web app but unfortunately i am getting exception witch i cant solve.
exception is thrown in DbMigratorHostedService.StartAsync() application.Initialize();
The requested service 'Microsoft.AspNetCore.Hosting.IWebHostEnvironment' has not been registered.
using .net 6
Beta Was this translation helpful? Give feedback.
All reactions