开发者

Build error in VS 2010

开发者 https://www.devze.com 2023-02-20 17:22 出处:网络
I am getting this error in m开发者_Python百科y application Error1Unable to copy file \"D:\\myproj\\bin\\Debug\\myproj.dll\" to \"bin\\Debug\\myproj.dll\". The process cannot access the file \'bin\\De

I am getting this error in m开发者_Python百科y application

Error   1   Unable to copy file "D:\myproj\bin\Debug\myproj.dll" to "bin\Debug\myproj.dll". The process cannot access the file 'bin\Debug\myproj.dll' because it is being used by another process.

How to fix it


Your project dll is being used by another process. Either you ran your application and it didn't fully shut down (check the task manager) or some other program is trying to consume the dll in the d:\myproj\bin\debug\myproj.dll

For example, in the olden days, if you used a .Net dll in a VB6 app, and pointed to the debug dll, it would grab on to that and you'd have to shut down VB6 to free the dll.

I suspect you'll have to do something similar.

Start by checking task manager and making sure your app isn't still running. Then close down any other apps that have a reference to your dll If neither of those two work, close down studio and restart it

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号