OrchardCore.Samples
OrchardCore.Samples copied to clipboard
Upgrade to .NET 6
Should we upgrade the projects to .NET 6 (use Program.cs, ...)?
If the question is "should we upgrade from net5.0 to net6.0?" my answer would be yes. If the question is should we drop Startup.cs and move that configuration into Program.cs I'd defer to the opinions of others. I have mixed feelings about the new way.
After thinking about this more I feel like conforming to the new .NET 6 way of having moving startup into Program.cs makes a lot of sense for Orchard Core framework applications. It actually clarifies what it is a module project vs. what is an application host since only module projects would have Startup.cs files after the change.
I upgraded my application to .net 6, but when I try to use the .net 6 way of having single program.cs insead of both startup and program.cs it doesn't seems to work. but when I keep it splitted it is working. Is the startup.cs required in modules for orcardcore to run perfectly?