如何在不部署项目 .dll 的情况下部署类库项目
在 Visual Studio 2008 中,是否有一种方法可以在不部署项目 DLL 的情况下部署类库项目?
背景:
我正在使用 OpenNETCF 的 Padarn Web 服务器。 OpenNETCF 建议我们将 Padarn Web 解决方案设计为三个不同的项目 -
- Padarn 服务器项目、
- 网页项目(静态内容,如 .aspx、html、css 等)、
- 代码隐藏项目。
事实证明,由于 Padarn 的工作方式,不需要(据我所知)部署包含网页(静态内容)的项目的 DLL。 .aspx 文件只不过是包含 @Page 指令的文本文件,该指令告诉 Padarn 服务器使用哪个代码隐藏类来构建实际的 HTML 内容。
In Visual Studio 2008, is there a way to deploy a Class Library Project without deploying the project's DLL?
Background:
I am using OpenNETCF's Padarn web server. OpenNETCF recommends that we design the Padarn web solution into three different projects -
- A project for the Padarn server
- A project for the web pages (the static content such as .aspx, html, css, etc)
- A project for the Code Behind.
It turns out that, due to how Padarn works, there is no need (that I'm aware of) to deploy the DLL of the project that contains the web pages (static content). The .aspx files are nothing much more than text files that contain an @Page directive which tells the Padarn server which Code Behind class to use to build the actual HTML content.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我无法找到一种在不部署项目 .dll 的情况下部署项目静态文件的方法。
我能想到的唯一解决办法是将静态文件/内容包含在另一个项目中。
就我而言,我总共有三个项目。其中一个项目是 .exe,另一个项目是 .exe 项目的业务逻辑,第三个项目包含静态内容(txt、html、文件)。
我能想到的唯一解决办法是将静态内容包含在其他两个项目之一中,这样总共就只有两个项目。
I was unable to find a way to deploy the static files of a project without deploying the .dll of the project.
The only work around I could come up with was to include the static files/content with another project.
In my case, I had a total of three projects. One of the projects was an .exe, another project was the business logic of the .exe project, and the third project contains static content (txt, html, files).
The only work around I could come up with was to include the static content with one of the two other projects such that there were only a total of two projects.