0

The Service Fabric Template on Visual Studio 2022 does not create a Startup class as it did for previous versions. I am not able to use Dependency Injection via the Program class. My workaround was to add a new .Net Project and use version 5 then change to 6. But this new project then has to have all the references added for Service Fabric which proved a struggle.

Does anyone know if there is a Service Fabric template which will allow the setting up of the solution which will also allow dependency injection?

  • I don't have Service Fabric SDK installed, can you please share somewhere (like github/gist) an empty program file created from template? – Guru Stron Sep 05 '22 at 18:24

0 Answers0