Thank you in advance for your help
What happened to the program and startup in Visual Studio 2022 .NET 7?
5 Answers
Know the answer? Post it. Somebody with the same question will find it here.
Thank you in advance for your help
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Mohammad HussainRank #513 · 4.8K reputationPosted Aug 25, 2023, 9:08 AM EDT
NET 7 might introduce further capabilities for developing cross-platform applications, allowing you to target different operating systems and architectures.
HF10 reputationPosted Aug 25, 2023, 9:21 AM EDT
what about startup.cs and program.cs in .net 7 we have just program.cs
Tahir AnsariRank #366 · 6.8K reputationPosted Aug 25, 2023, 9:37 AM EDT
From dotnet 6 start-up.cs file is merged in program.cs file
HF10 reputationPosted Aug 25, 2023, 11:21 AM EDT
yes but in .net 7 we have just program.cs in mvc when we want add new scaffold identity identityhosting is not in data
can someone show me program.cs value in .net 7?
sorry if my english not so good
Prasad RaveendranRank #320 · 7.8K reputationPosted Aug 25, 2023, 5:30 PM EDT
As commonly understood, the Startup.cs file comprises two methods: ConfigureServices() and Configure(). In ConfigureServices(), we typically perform registration of services and dependencies, while in the Configure() method, we set up middlewares. However, from .NET 6.0 onwards, this approach shifts. Instead of Startup.cs, you'll find that Program.cs becomes the designated location for registering your services and dependencies following the builder configuration.