Startup file is missing in Asp.net core mvc?

02-131202-027 20 Reputation points
2023-04-20T21:06:40.9533333+00:00

in my every asp.net project, startup.cs file is missing?

Developer technologies ASP.NET ASP.NET Core
0 comments No comments
{count} votes

Accepted answer
  1. Farid Uddin Kiron MSFT 456 Reputation points Microsoft External Staff
    2023-04-21T07:38:00.9266667+00:00

    You haven't shared which version of asp.net core mvc project you are using. Since ASP.NET Core MVC (.NET 6) you would not seen Startup.cs file, instead it has program.cs Let's have a look on following project architecture:

    User's image

    Note: You can have a look here in official sample and document.


1 additional answer

Sort by: Most helpful
  1. Bruce (SqlWork.com) 77,686 Reputation points Volunteer Moderator
    2023-04-21T15:03:47.89+00:00

    The default asp.net core template does not use startup.cs anymore, but rather the new min api. There is just program.cs

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.