简体   繁体   中英

ASP.NET assembly vs class library assembly

Is ASP.NET assembly somehow different from class library assembly? If no is it possible to host class library assembly in IIS?

The resulting assemblies are no different in its nature. There is no magic involed in the process. The only difference related to hosting in IIS is the name of the output directory "bin" instead of "Debug"/"Release" and existance of web.config.

However class library should not be poluted with with hosting related things like specific code or web.config.

Also using ASP.NET project type gives better tooling like F5 (Start debugging) experience.

So hosting class library doesn't make much sense.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM