universeodon.com is part of the decentralized social network powered by Mastodon.
Be one with the #fediverse. Join millions of humans building, creating, and collaborating on Mastodon Social Network. Supports 1000 character posts.

Administered by:

Server stats:

3.3K
active users

Learn more

#aspnetcore

6 posts5 participants1 post today

Spent the evening wrestling with an odd problem with EF Core Migrations; they work fine if I use the Azure SQL connection string and connect to the DB from local but NEVER work running in the Azure App Service (linux, self contained). Tried EVERYTHING but it never detects them. If I run from local it's ALL FINE. THe Connection string is right, the migrations are in the deployed assembly etc. AI is no use at all :(
#efcore #aspnetcore

I wrote a Minimal API endpoint that you can drop into your #aspnetcore applications to quickly see the registered dependencies and their lifetime scopes.

Should help when you're scratching your head as to why that dependency isn't getting resolved. #dotnet

gist.github.com/khalidabuhakme

A Minimal API Endpoint that let's you look through registered dependencies - ServicesDebugger.cs
GistA Minimal API Endpoint that let's you look through registered dependenciesA Minimal API Endpoint that let's you look through registered dependencies - ServicesDebugger.cs