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?