如何为Web应用程序创建类库..? [英] how to create class library for web application..?

查看:106
本文介绍了如何为Web应用程序创建类库..?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好



我想将类库用于Web应用程序。但它不会......我要做的事情4 ..

解决方案

只需在Visual Studio中创建一个普通的类库项目并将其作为参考添加到你的web应用程序项目。


请看我对这个问题的评论。



这个问题几乎等同于如何进行.NET编程?。



没有人可以回答这个问题,因为这是一些教育,而不仅仅是简短的解决方案或信息。主要思想是:在学习所有要使用的技术基础知识和所有基本技术之前,停止所有开发任何现实项目的尝试。类库的概念太基础了,不容错过。在转到ASP.NET或类似之前,通过手册从第一页到最后一页以及.NET的基础知识来学习语言。从舒适的控制台应用程序开始。



只有在您准备就绪后,您才有资格在CodeProject提问。别客气;我们很乐意帮助你。



-SA


右键点击解决方案中的解决方案资源管理器并向解决方案添加新项目。



在已安装的模板中,选择窗口和类库。



为类库命名然后单击确定。



添加对主项目的引用(需要类库),然后您可以在我们项目的asp.net中使用类库。

Hi to all

i want to use class library for web application. but it is not coming...what i have to do 4 that..

解决方案

Just create a normal class library project in Visual Studio and add it as a reference to your web application project.


Please see my comment to the question.

This question is nearly equivalent to the question "how to do .NET programming?".

No one can answer this question, because this is some education, not just short solution or information. Main idea is this: stop all your attempts to develop any real-life project before you learn all the basics of technologies to be used and all basic techniques. The concept of a class library is too basic to miss. Learn you language by the manual from its first page to the last one and just the basics of .NET before you move to ASP.NET or anything like that. Start from being comfortable with just the console applications.

Only when you are ready, you are qualified to ask questions at CodeProject. You are welcome; and we will gladly help you.

—SA


Right click on the solution in solution explorer and add a new project to the solution.

In the installed templates, select windows and class library.

Give a name to the class library and click ok.

Add reference to your main project(Which requires the class library), and then you can use the class library in your asp.net we project.


这篇关于如何为Web应用程序创建类库..?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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