向项目添加参考 [英] Add Reference To Project
问题描述
我想知道如何添加对bin \ *.dll的引用.从一个不同的Web应用程序中选择我的dll以添加为参考(以使用其他代码中的现有类)并部署此新的Web应用程序之后,如何利用其他代码?我的意思是,我的其他代码是否内置"到了这个新的dll中?出现此问题的原因是我的雇主与项目具有不同的路径:在本地开发计算机上,它位于测试服务器上名为"local"的文件夹中,位于"test"文件夹中,而在实时服务器上,则位于"live"文件夹中.因此,我担心要在本地"文件夹中添加对原始代码的引用,然后在测试和/或实时服务器时,这个新项目正在本地"中寻找原始dll,而该dll不存在.因此,当这个新项目要测试或运行服务器时,新的Web应用程序将在本地"文件夹中查找原始dll,还是在构建新的Web应用程序时将旧的DLL构建"为新的DLL?
谢谢,
Brad
I was wondering how adding a reference to bin\*.dll works. After selecting my dll from a differenct web app to add as a reference (to use existing classes in other code) and deploy this new web app, how does the other code get utilized? What I mean by that is does my other code get "built" into this new dll? Reason for this question is that my employer has paths different to project: on local development computer it is in folder named "local" on test server it is in folder named "test" and on live server it is in folder named "live". So I am concerned about adding reference to original code in "local" folder and then when goes to test and/or live server this new project is looking for original dll in "local" and that is not where it exists. So when this new project goes to test or live server, will new web app be looking in "local" folder to find original dll or when build new web app does it "build" the old dll up into new dll?
Thanks,
Brad
推荐答案
dll被复制到您的新项目中,并添加到网站的bin文件夹中.
The dll is copied to your new project and added to the web site''s bin folder.
这篇关于向项目添加参考的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!