简体   繁体   English

向VS 2008项目添加DLL引用

[英]Adding a DLL reference to a VS 2008 project

I have a vs 2008 solution that has 2 projects. 我有一个vs 2008解决方案,其中有2个项目。 One references the other one, but I need to add a DLL to one of the projects. 一个引用另一个,但是我需要向其中一个项目添加一个DLL。 I go to the solution explorere, right click and go to Add Reference. 我转到解决方案资源管理器,右键单击并转到“添加引用”。 It gives me 2 tabs: Project and SQL Server. 它给了我2个标签:Project和SQL Server。

In Project, I see my other project and added that in. SQL Server is blank. 在Project中,我看到了另一个项目,并在其中添加了内容。SQLServer为空白。 But how do I add just a single DLL? 但是,如何仅添加一个DLL?

You must be creating a SQL Server project. 您必须创建一个SQL Server项目。 To add a DLL reference in SQL Server project, you must first register that dll with sql server. 若要在SQL Server项目中添加DLL引用,必须首先在sql server中注册该dll。 How to register a dll with SQL SERVER ? 如何使用SQL SERVER注册DLL? Look at this tutorial on codeproject. 查看有关codeproject的教程。 Once dll is registered, it will be available for reference in SQL Server tab. 一旦注册了dll,即可在“ SQL Server”选项卡中进行参考。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM