'when i create a new .net core mvc project the Startup.cs file doesnt create in project

i create new .net core mvc project in vs 2022 .net6 it hasn't Startup.cs file enter image description here



Solution 1:[1]

After .NET Core 6.0,

Program.cs includes Startup.cs as well.

You can do everything in Program.cs that you can do at Startup.cs

I guess they made this to simplify the code.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 srhtyt1