在 Visual Studio 中发布网站:使用“固定命名和单页程序集”?
从 Visual studio 2008 发布网站时,您会看到一个包含一些选项的对话框。 其中之一是“使用固定命名和单页程序集”。
我们没有启用该功能,但是这个选项的优点和缺点是什么? 性能上有什么区别吗?我们应该还是不应该使用这个?
如果没有这个选项,我们发布后会在 bin 文件夹中得到 774 个文件, 当我们检查它时,我们得到1320个文件,因为每个ascx都有自己的dll。
如果我们确实检查这一点,“固定名称”是否仅固定在我的计算机上? 或者同事发布网站时也是这样吗?
When puslishing a website from Visual studio 2008, you get a dialog box with some options.
One of them is 'Use fixed naming and single page assemblies'.
We don't have that enabled, but what are the pro's and con's of this option?
Is there a difference in performance or anything? Should or should we not use this?
Without this option, we get 774 files in the bin folder after publishing,
when we check it, we get 1320 files, because every ascx gets its own dll.
If we do check this, are the 'fixed names' only fixed on my computer?
Or is it the same when a colleague publishes the website?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
固定的命名程序集提供了页面级更新的灵活性。由于每个页面都有自己的命名程序集(而不是随机名称),因此只需更新所需的程序集即可轻松更新应用程序。缺点是程序集数量较多(难以维护),而且性能也会受到轻微影响。
更多详情请查看这篇文章:
http://msdn2.microsoft.com/en-us/ Library/ms229863(VS.80).aspx
答案来源:
http://forums.asp.net/t/1057767.aspx
来自 MSDN 文章:
Fixed named assemblies provide flexiblity in page level updates. Since 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 (difficult to maintain) and also slight performance hit would be there.
For more details check this article:
http://msdn2.microsoft.com/en-us/library/ms229863(VS.80).aspx
Source of answer:
http://forums.asp.net/t/1057767.aspx
From the MSDN article: