将dll文件放入bin文件夹c#.net时出错 [英] error in placing dll file to bin folder c#.net

查看:269
本文介绍了将dll文件放入bin文件夹c#.net时出错的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

让我们考虑一个例子,其中


1)我已经在c#.net中编译了源文件,并获取了该dll并将其放入已经编译过的其他项目的bin目录中.

2)是否可以通过更改Web配置文件来运行该文件

如果是,请给出一些想法或解决方案





等待响应

let us consider a example in which


1) i have complied the source file in c#.net and took that dll and place it in to bin directory of already compiled other project

2) is it possible to run that file by changing in web configuration file

if yes give some ideas or else give some solutions to it





waiting for your responses

推荐答案

如果它是DLL,则必须在尝试使用它的项目中添加对其的引用.

更好的主意是使项目处于将要使用的相同解决方案中.然后添加项目引用,然后将使用dll并将其自动复制到目标目录中.手动复制它容易出错,并且如果两个项目都在开发中,将是维护的噩梦.
If it is a DLL then you have to add the reference to it in the project you are trying to use it.

The better idea would be to have the project in the same solution which is going to use it. then add the project reference and then the dll will be used and copied automatically into the target directory. copying it manually is error prone and will be a maintenance nightmare if both the projects are under development.


这篇关于将dll文件放入bin文件夹c#.net时出错的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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