asp.net 构建工具可以将一个 Web 应用程序构建为多个 dll?
我有一个大型解决方案,其中有多个应用程序,这些应用程序都共享一些常见的网站元素(母版页、导航等)。
目前,所有这些都构建到一个 DLL 中
如果我的结构如下所示:
WebRoot
- Common/
- Shared/
- Images/
- App1/
- App2/
- etc
是否有构建工具允许我构建 WebRoot.dll、App1.dll、App2.dll?我不相信这在 VS2008 或 MSBuild 工具中是可能的。
I have a large solution which has multiple apps which all share some common site elements (masterpages, navigation, etc).
Currently, all of these get built into a single DLL
If my structure looks like:
WebRoot
- Common/
- Shared/
- Images/
- App1/
- App2/
- etc
Is there a build tool which will allow me to build WebRoot.dll, App1.dll, App2.dll? I don't believe this is possible in VS2008 or the MSBuild tool.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您可以使用 Web 部署项目 (VS 2008 的 WDP,VS 2010 的 WDP)。下载并安装到网络上后,您可以右键单击并选择“添加 Web 部署项目”。然后您只需双击即可配置该项目。您可以配置程序集的生成方式。四种不同的选项包括。
在幕后,WDP 只需调用 aspnet_compiler.exe 以及 aspnet_merge.exe。
You can do this by using Web Deployment Projects (WDP for VS 2008, WDP for VS 2010). After you download and install that on your web you can right click and select 'Add Web Deployment Project'. Then you can just double click to configure that project. You can configure how the assemblies get generated. The four different options include.
Under the covers the WDP is simply invoking the aspnet_compiler.exe as well as aspnet_merge.exe.
有没有办法可以将所需的“项目”移出 Web 根目录,然后单独构建它们,然后使用适当的项目引用 Web 根目录,从而获得 .dll?
is there no way that you can move the required 'projects' out of the web root and then make them build separately and then reference then web root with the appropriate projects and thus you can get the .dlls?