我在Visual Studio 2005中完成了一个项目现在我想在单个Dll文件中更改该项目请帮助我举例 [英] I Done One Project In Visual Studio 2005 Now I Want To Change That Project In Single Dll File Please Help Me With Examples

查看:55
本文介绍了我在Visual Studio 2005中完成了一个项目现在我想在单个Dll文件中更改该项目请帮助我举例的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在c#.net(visual studio2005)中完成了一个项目,它是一个webapplication项目。现在它要在单个dll文件中更改。



请给示例如何操作

I was done one project in c#.net (visual studio2005) it is a webapplication project.now it want to change in single dll file.

please give with example how to do

推荐答案

参见 http://msdn.microsoft.com/en-us/library/ms228390(v = vs.90).aspx [ ^ ]。


每个解决方案中的项目将构建为dll。所以,你所要做的就是构建项目,它将为你生成一个dll。您可以查看项目属性来控制一些选项,但每个项目都是一个dll。除非它是一个Windows窗体应用程序,在这种情况下它将是一个exe。



如果你想让某些类可以在别处共享,我建议你做一个单独的项目来放置你的共享代码(例如数据库访问代码),然后就可以了在每个项目中重复使用它。
Each project in a solution will be built as a dll. So, all you have to do is build the project and it will generate a dll for you. You can look at your project properties to control some of the options but each project will be a dll. Unless it is a windows forms app in which case it will be an exe.

If you want certain classes available to be shared elsewhere I would suggest making a separate project where you put your shared code (for example database access code) and then you can reuse it in each project.


这篇关于我在Visual Studio 2005中完成了一个项目现在我想在单个Dll文件中更改该项目请帮助我举例的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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