asp.net中的单页程序集 [英] Single page assembly in asp.net

查看:59
本文介绍了asp.net中的单页程序集的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

任何人都可以解释一下单页汇编以及如何实现这个目的吗?

Can any one explain about single page assembly and how to achieve this?

推荐答案

每个页面都有自己的命名程序集(而不是随机名称)只需更新所需的程序集即可轻松更新应用程序。缺点是导致维护困难的大量组件和性能受损。



Each page will have its own named assembly (instead of a random name) it is easy to update the application by just updating the required assembly. Disadvantage is the large number of assemblies leading to difficulty in maintainence) and performance hit.

引用:

来自MSDN文章:



固定程序集名称某些方案(例如使用MSI Windows Installer部署Web应用程序)需要使用一致的文件名称和内容,以及用于标识更新的程序集或配置设置的一致目录结构。在这些情况下,您可以使用-fixednames选项指定ASP.NET编译工具应为每个源文件编译程序集,而不是使用将多个页面编译到程序集中的位置。这可能会导致大量的程序集,因此如果您关注可伸缩性,则应谨慎使用此选项。

From the MSDN article:

Fixed Assembly Names Some scenarios, such as deploying a Web application using the MSI Windows Installer, require the use of consistent file names and contents, as well as consistent directory structures to identify assemblies or configuration settings for updates. In those cases, you can use the -fixednames option to specify that the ASP.NET Compilation tool should compile an assembly for each source file instead of using the where multiple pages are compiled into assemblies. This can lead to a large number of assemblies, so if you are concerned with scalability you should use this option with caution.





来源:

http://forums.asp.net/t/1057767.aspx [ ^ ]

http://msdn.microsoft.com/en-in/library/bb398860(v = VS.100 ).aspx [ ^ ]

http:/ /msdn.microsoft.com/en-us/library/ms229863(VS.80).aspx [ ^ ]

http://stackoverflow.com/questions/5675228/publish-website-in-visual-studio-use-fixed-naming-and-single-page-assemblies [ ^ ]



Source:
http://forums.asp.net/t/1057767.aspx[^]
http://msdn.microsoft.com/en-in/library/bb398860(v=vs.100).aspx[^]
http://msdn.microsoft.com/en-us/library/ms229863(VS.80).aspx[^]
http://stackoverflow.com/questions/5675228/publish-website-in-visual-studio-use-fixed-naming-and-single-page-assemblies[^]


这篇关于asp.net中的单页程序集的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆