I’ve recently migrated some projects from older versions of .Net (4.7 and .Net Core 2.x) to .Net 5. This have given me the option to host these projects on a Linux App Service. One of the main reasons to move to a Linux based App Service is the savings in hosting costs, but it has also thrown up some gotchas that I want you to be aware of.
Gotchas Before migrating your web app from a Windows App Service to a Linux App Service there are some things you should be aware of:
To demonstrate Dependency Injection in a .Net Core Console project, I will create a SecurityService class
which will have a dependency on an AuditService class.