在C#中构建项目时,dll中出现错误? [英] i have error in dll when building the project in C#?

查看:83
本文介绍了在C#中构建项目时,dll中出现错误?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

无法将文件"obj \ Debug \ MyAddin1.dll"复制到"bin \ MyAddin1.dll".该进程无法访问文件"bin \ MyAddin1.dll",因为该文件正在被另一个进程使用.

Unable to copy file "obj\Debug\MyAddin1.dll" to "bin\MyAddin1.dll". The process cannot access the file ''bin\MyAddin1.dll'' because it is being used by another process.

推荐答案

亲爱的Balavino,

如果您打开了另一个Visual Studio实例,该实例引用了外接程序,则会出现此错误.确保已将其设置为在应用程序启动时不加载或关闭其他实例.

如果仍然不能解决问题,请关闭IDE的所有实例,然后通过Windows资源管理器删除dll.



尝试在启动Visual Studio时按住Shift键.如果您有要在启动时加载的加载项设置,则我们首先检查Shift键是否按下.如果是,那么我们将跳过加载该加载项.


希望这对您有所帮助.

谢谢
Dear Balavino,

If you have another instance of visual studio open which is referencing the Add-In you will get this error. Make sure you either have it set not to load on application start or close the other instance.

If that still does not work, close all instances of the IDE and delete the dll through Windows Explorer.

OR

try holding down the Shift key while starting Visual Studio. If you have an Add-in set to load on startup, we first check to see if the Shift key is down. If it is, then we will skip loading that Add-in.


Hope this will help you out.

Thanks


您好,

似乎有其他正在运行的应用程序,它指向您的bin目录MyAddin1.dll,或者您已将此 addin 安装到您的应用程序(您正在创建外接程序的应用程序)中.

首先,您需要检查哪个应用程序正在使用此插件.


谢谢
-amit.
Hi,

it seems like some other running application pointing to your bin directory MyAddin1.dll or you have installed this addin to your application (application for you are creating addins).

first of all you need to check which application is using this addins.


thanks
-amit.


这篇关于在C#中构建项目时,dll中出现错误?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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