VS 2005:一个网站的多个dll可能吗? [英] VS 2005: multiple dll's for one website possible?

查看:83
本文介绍了VS 2005:一个网站的多个dll可能吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述




因为我们有一个大型WebApp,早在2002年我们决定使用以下

方法:
http://support.microsoft.com /default...b;en-us;307467


简而言之:


创建一个项目a在http // localhost / MyWebApp

创建一个项目b在http // localhost / MyWebApp / Part1

创建一个项目c在http // localhost / MyWebApp / Part2

在IIS中,删除项目b的应用程序。和c并添加对

项目b的引用。和c来自项目a。像魅力一样工作!


这种方法有几个优点:你的解决方案只包含你正在进行的项目(快速编译)的

项目,我们得到了一个单独的DLL for

每个项目(易于部署)。


但在VS 2005中,项目的概念不再存在于网站上。 />
如果我转换&打开项目a'',它还包含项目b和b。和c。


还有办法将我们的网站编译成多个DLL吗?


Steven

- - -

解决方案

请参阅:VS 2005Web部署项目 wdproj缺少宏?线程。


Juan T. Llibre,ASP.NET MVP

ASP.NET FAQ: http://asp.net.do/faq/

ASPNETFAQ.COM: http://www.aspnetfaq.com/

Foros de ASP。 NET en Espa?ol: http://asp.net.do/foros/

======================================
" Steven Spits" <所以***** @ company.com>在留言中写道

新闻:%2 **************** @ TK2MSFTNGP14.phx.gbl ...



因为我们有一个大的WebApp,早在2002年我们决定使用以下方法:

http://support.microsoft.com/default...b;en-us;307467 <简而言之:

创建一个项目a在http // localhost / MyWebApp
创建一个项目b在http // localhost / MyWebApp / Part1
创建一个项目c在http // localhost / MyWebApp / Part2

在IIS中,删除项目b的应用程序。和c并添加对项目b和c的引用。来自项目a。像魅力一样工作!

这种方法有几个优点:你的解决方案只包含你正在进行的项目(快速编译),我们为每个项目得到一个单独的DLL(简单
部署)。

但在VS 2005中,项目概念不再存在于网站上。如果我转换
&打开项目a'',它还包含项目b和b。还有c。

还有办法将我们的网站编译成多个DLL吗?

Steven



听起来你正在尝试做我们正在做的事情。

基本上,每个aspx页面都有自己的dll(甚至多个dll) 。

这意味着每个页面都有自己的解决方案和项目(和

可能的子项目,就像你描述的其他dll特定于

那个页面)。您需要一个名为Web部署

项目的beta VS 2005加载项。你可以在这里得到它:

http://msdn.microsoft.com/asp.net/re...p/default.aspx


请务必阅读使用Web部署项目与Visual

Studio 2005文档,它将引导您完成您想要做的事情。

。基本上,您现在可以选择将您的

App_Code.dll和App_Web< mangled> .dll合并到一个程序集中。

您可以选择名称。


它还为您提供了其他选项,例如为每个页面编译不同的程序集

等。


Dan


" DBxGlock" <分贝****** @ yahoo.com>在留言中写道

news:11 ********************** @ f14g2000cwb.googlegr oups.com ......

您需要一个名为Web部署
项目的beta VS 2005加载项。你可以在这里得到它:




谢谢你的邮件!我会调查一下......!


史蒂文


- - -


Hi,

Because we have a large WebApp, back in 2002 we decided to use the following
method:

http://support.microsoft.com/default...b;en-us;307467

In short:

Create a project "a" at http//localhost/MyWebApp
Create a project "b" at http//localhost/MyWebApp/Part1
Create a project "c" at http//localhost/MyWebApp/Part2

In IIS, remove applications for project "b" and "c" and add references to
project "b" and "c" from project "a". Works like a charm!

This method has serveral advantages: your solution only contains the
projects you''re working on (quickly compiled) and we get a seperate DLL for
each project (easy deployment).

But in VS 2005 the concept of projects doesn''t exist anymore for websites.
If I convert & open project "a"'', it also contains project "b" and "c".

Is there still a way to compile our website to multiple DLL''s?

Steven

- - -

解决方案

See the : VS 2005 "Web Deployment Projects" wdproj lacks macros? thread.


Juan T. Llibre, ASP.NET MVP
ASP.NET FAQ : http://asp.net.do/faq/
ASPNETFAQ.COM : http://www.aspnetfaq.com/
Foros de ASP.NET en Espa?ol : http://asp.net.do/foros/
======================================
"Steven Spits" <so*****@company.com> wrote in message
news:%2****************@TK2MSFTNGP14.phx.gbl...

Hi,

Because we have a large WebApp, back in 2002 we decided to use the following method:

http://support.microsoft.com/default...b;en-us;307467

In short:

Create a project "a" at http//localhost/MyWebApp
Create a project "b" at http//localhost/MyWebApp/Part1
Create a project "c" at http//localhost/MyWebApp/Part2

In IIS, remove applications for project "b" and "c" and add references to project "b"
and "c" from project "a". Works like a charm!

This method has serveral advantages: your solution only contains the projects you''re
working on (quickly compiled) and we get a seperate DLL for each project (easy
deployment).

But in VS 2005 the concept of projects doesn''t exist anymore for websites. If I convert
& open project "a"'', it also contains project "b" and "c".

Is there still a way to compile our website to multiple DLL''s?

Steven



It sounds like you''re trying to do the very thing we''re doing.
Essentially, each aspx page has its own dll (or even multiple dlls).
This means that each page had its own solution and project (and
possibly sub-projects like you described for other dlls specific to
that page). You need a beta VS 2005 add-in called "Web Deployment
Projects". You can get it here:

http://msdn.microsoft.com/asp.net/re...p/default.aspx

Make sure you read the "Using Web Deployment Projects with Visual
Studio 2005" document and it will walk you through doing exactly what
you want to do. Basically, you''ll now have the option to combine your
App_Code.dll and your App_Web<mangled>.dll into a single assembly and
you get to choose the name.

It also gives you other options, such as compiling a different assembly
for each page, etc.

Dan


"DBxGlock" <db******@yahoo.com> wrote in message
news:11**********************@f14g2000cwb.googlegr oups.com...

You need a beta VS 2005 add-in called "Web Deployment
Projects". You can get it here:



Thank you for your mail! I will look into it...!

Steven

- - -


这篇关于VS 2005:一个网站的多个dll可能吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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