如何在项目中包含一个库? [英] How do I include a library in my project?

查看:104
本文介绍了如何在项目中包含一个库?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如果要下载的项目没有这样的.dll(即)
http://www.codeproject.com/KB/cs/TexboxValidation/textboxvalidation_src.zip [ ^ ]

谢谢!

If the project to download has no .dll like this one (i.e)
http://www.codeproject.com/KB/cs/TexboxValidation/textboxvalidation_src.zip[^]

Thank you!

推荐答案

技术上,您甚至可以随意包含可执行文件并将其加载为参考.但这太脏了:)因此,您有两种方法可以遵循:仅在项目中包含所需的文件,并使用它们的名称空间或将示例应用程序重构为类库,仅使用所需的部分即可.但是不要忘记遵守许可证.
Technically you can even include executable as assambly and load it as reference. But it would be too dirty :) So you have two ways to follow: include the files you need in your project and use their namespace or refactor the sample app into a class library, using only parts that you need. But don''t forget to be in accordance with the license.


这篇关于如何在项目中包含一个库?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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