Thank you in advance for your help
Loading
Thank you in advance for your help
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Prasad RaveendranPosted Aug 25, 2023, 9:30 PM
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.
HFPosted Aug 25, 2023, 3:21 PM
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
Tahir AnsariPosted Aug 25, 2023, 1:37 PM
From dotnet 6 start-up.cs file is merged in program.cs file
HFPosted Aug 25, 2023, 1:21 PM
what about startup.cs and program.cs in .net 7 we have just program.cs
Mohammad HussainPosted Aug 25, 2023, 1:08 PM
NET 7 might introduce further capabilities for developing cross-platform applications, allowing you to target different operating systems and architectures.