Chriztian Steinmeier
05/13/2024, 7:28 AMProgram.cs
and Startup.cs
, whereas v13 only has a Program.cs
... now, everytime I find a "How to do [XYZ] in v13" article, it references methods in Program.cs
that don't exist in my project's file... are the upgrade docs I followed missing a step to upgrade those files, or is that not expected?Sebastiaan
05/13/2024, 8:10 AMProgram.cs
being different.
My approach would be to backup the current Startup.cs
and Program.cs
- and delete both of them from your project.
Then look at the default v12 version of Startup.cs
https://github.com/umbraco/Umbraco-CMS/blob/v12/dev/src/Umbraco.Web.UI/Startup.cs
Things kinda migrated from Startup.cs
to Program.cs
so the v13 default Program.cs
looks similar https://github.com/umbraco/Umbraco-CMS/blob/v13/dev/src/Umbraco.Web.UI/Program.cs
I'd put that default Program.cs
in the place where your previous Program.cs
was.
Finally, look at your backed-up Startup.cs
and see if you made any customizations, they should slot into the new Program.cs
in similar areas (hard to give general advise, so hopefully you didn't customize too much, but most of it should be doable).
Now that I'm writing this, I also realize how difficult it would be to document it 😅Chriztian Steinmeier
05/13/2024, 8:14 AMSebastiaan
05/13/2024, 9:06 AMSven Geusens
05/14/2024, 10:54 AMSebastiaan
05/14/2024, 11:01 AMSven Geusens
05/14/2024, 11:11 AMSven Geusens
05/14/2024, 11:12 AMSven Geusens
05/14/2024, 11:13 AMSebastiaan
05/14/2024, 11:23 AMProgram.cs
so that's how most people are going to be doing it anyway.
There were other (more hypothetical) objections mentioned as well, but I can't find the thread now. I think it was around slight extra overhead and/or ordering possibly being a problem, can't remember exactly.Chriztian Steinmeier
05/15/2024, 5:40 AMappsettings.json
, or having to figure out which using
statements I need for the code to work (I know everyone else use VS Code or Visual Studio, which probably figures this out automatically).kdx-perbol
05/15/2024, 9:09 AMMike Chambers
05/15/2024, 9:20 AMSebastiaan
05/15/2024, 10:35 AMusing
statements, it's all to easy for people to get confused without them, especially if they're not proficient in dotnet and/or haven't found out how visual studio can help them yet.Chriztian Steinmeier
05/15/2024, 11:01 AMkdx-perbol
05/15/2024, 12:26 PMChriztian Steinmeier
05/15/2024, 12:40 PMA hub and casual space for you to interact with fellow community members and learn more about Umbraco!
Powered by