Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rror MSB3027: Could not copy "obj\Debug\net47\*.EntityFramework.dll" #64

Open
muehan opened this issue May 16, 2019 · 5 comments
Open

Comments

@muehan
Copy link

muehan commented May 16, 2019

I have the problem that I can only run 1 command, after that I have the error:

The process cannot access the file 'MyAssembly.EntityFramework\bin\Debug\net47\MyAssembly.EntityFramework.dll' because it is being used by another process.

  • I have a fresh started Windwos 10
  • open PS and navigate to the project path
  • run dotnet ef6 database update or migrations add blabla
  • when this runs into an error no more commands are running

Since its pretty anoying to restart the computer after each command and I have no idea what it could be. I checked the background processes and the process Explorer, nothing else is running.

@mrahhal
Copy link
Owner

mrahhal commented May 16, 2019

That's a strange error, never faced it before and I use Migrator.EF6 extensively at work. I'm trying to make something out but I have no idea what could be causing it really. Maybe start with checking to see if after that first command there's a hanging "dotnet-ef6.exe" running in Task Manager?

@muehan
Copy link
Author

muehan commented May 23, 2019

There is no dotnet-ef6.ese running. I closed all programs and killed many processes but no luck. And I only have this problem on that one Win10 VM. My Colleagues don't have that problem and they have the same setup. I really tried everything I can imagine could be a problem before opening this issue here. But I understand that if I'm the only one having that problem on only one machine it is nearly impossible to find the root if this behavior. I thought maybe someone else has the same problem and maybe has an idea why it happens.

@mrahhal
Copy link
Owner

mrahhal commented May 23, 2019

I see. Yeah really sorry, I have no idea where to begin. But if you find any hint let me know and I'll do my best to help.

But one more thing, does this happen no matter which project you run this in? What I mean, did you try perhaps running this in the sample in this repo? Does the same thing happen?

@muehan
Copy link
Author

muehan commented Jun 6, 2019

Sorry for the late reply, lots of work...
I have tested in different repos, but not with this one. I try to do that soon.

@muehan
Copy link
Author

muehan commented Jun 26, 2019

oke, I have the problem again. new migrations :)
I see that the process "dotnet-ef6.exe" is in the Process Explorer. It hat the state "Suspended" but stays there forever. I can not kill it it says "Access is denied".

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants