when i read about the WebApplication app = builder.Build() : it is create new instacnce of the WebApplication class that converts all of the application setup from the builder into an executable application instance dose that means that it careates the exe file for the webapplication
Loading

Aman GuptaPosted Sep 10, 2024, 5:58 AM
Hi Mina,
No, the app = builder.Build() statement in ASP.NET Core does not create an .exe file for the web application.
Explanation of app = builder.Build()
Tahir AnsariPosted Sep 10, 2024, 2:40 AM
No, calling WebApplication app = builder.Build() does not create an executable (exe) file.
The actual executable file (.exe) for your web application would have already been created when you compiled the project (typically in the bin folder).
The Build() method simply finalizes the application's configuration so that it's ready to be run, but it doesn't generate an .exe file on its own.