sly_Chandan
sly_Chandan

Reputation: 3515

what is the difference between creating a web application and a web site?

Why does an assembly get created when I am building a web site? I mean a web site and not a web application.

Upvotes: 0

Views: 148

Answers (1)

Darin Dimitrov
Darin Dimitrov

Reputation: 1039428

The difference is quite big. A web site is not compiled. Code is placed in the App_Code folder and dynamically compiled by ASP.NET at runtime. A web application is precompiled meaning that you can place code wherever you want and it will produce an assembly at compile-time. You also get a project file .csproj associated with it.

Here's an overview on MSDN.

Upvotes: 3

Related Questions