Answer the question
In order to leave comments, you need to log in
Why does the default template have one Program.cs instead of Program.cs and Startup.cs?
In all the repositories and guides that I found, people in the original template have a different structure than the one that is generated by me.
And there is no class declaration in the Program.cs file. In principle, it’s even more convenient for me personally, but what is the reason for this?
ps I have very little practical experience in c#, so it is desirable to be more detailed, if possible.
Thanks to.
Answer the question
In order to leave comments, you need to log in
I will assume that you have seen the new template from .net 6:
var builder = WebApplication.CreateBuilder(args);
var app = builder.Build();
app.MapGet("/", () => "hello world");
app.Run();
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question