在文件后面的代码中添加引用 [英] adding reference in code behind the file

查看:132
本文介绍了在文件后面的代码中添加引用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

将Gnostice.PDFOne.dll添加为对项目的引用"在我的2005 Visual Studio中,我没有任何选择可以将其添加为引用.如果您熟悉它,任何人都可以指引我前进的道路.还是我可以直接在文件后面的代码顶部添加"using Gnostice.PDFOne" ?.

"Add Gnostice.PDFOne.dll as a reference to the project" I don''t have any option in my 2005 visual studio to add it as a reference. can any one direct me the path if you are familiar with it. Or can I just simply add "using Gnostice.PDFOne" on the top of my code behind file?.

推荐答案

只需右键单击引用"文件夹下的解决方案资源管理器中有问题的项目名称,然后单击添加引用".在那里.如果这是已注册的dotNet程序集,它将位于初始的.NET选项卡中;如果不是,则可以浏览至.dll文件位置并以这种方式添加它.如果它是COM组件,则可以使用COM选项卡找到它.
Just right click on your "references" folder under the project name in question in your solution explorer and click "Add Reference". It is there. If this is a registered dotNet assembly it will be in the initial .NET tab, if it is not you can browse to the .dll file location and add it that way. If it is a COM component, you can use the COM tab to find it.


只需按照
Just follow the steps on given here[^], and you should be able to add a reference to the dll.
You will however need to know the location of Gnostice.PDFOne.dll on your hard drive.
Once this is done successfully, you can add using Gnostice.PDFOne to your class file.


这篇关于在文件后面的代码中添加引用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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