OrchardCore.Samples icon indicating copy to clipboard operation
OrchardCore.Samples copied to clipboard

Upgrade to .NET 6

Open agriffard opened this issue 3 years ago • 3 comments

Should we upgrade the projects to .NET 6 (use Program.cs, ...)?

agriffard avatar Jan 11 '22 09:01 agriffard

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.

jeremycook avatar Jan 12 '22 00:01 jeremycook

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.

jeremycook avatar Jan 20 '22 17:01 jeremycook

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?

herryG avatar Mar 11 '22 07:03 herryG