-
Notifications
You must be signed in to change notification settings - Fork 3.4k
Description
Describe what is not working as expected.
EF CLI tools eat MSB3026 error message. This seems most common when forgetting to stop the application before trying to add a new migration. This should be common sense, but it's caught me a few times now just forgetting.
If you are seeing an exception, include the full exceptions details (message and stack trace).
Without verbose mode enabled
Build failed.
With verbose mode enabled:
Build FAILED.
...
cannot access the file '/Users/steven.lambe/Projects/test/test/test/bin/Debug/netcoreapp2.0/test.dll' because it is being used by another process. [/Users/steven.lambe/Projects/test/test/test/test.csproj]
/usr/local/share/dotnet/sdk/2.1.301/Microsoft.Common.CurrentVersion.targets(4172,5): error MSB3027: Could not copy "obj/Debug/netcoreapp2.0/test.dll" to "bin/Debug/netcoreapp2.0/test.dll". Exceeded retry count of 10. Failed. [/Users/steven.lambe/Projects/test/test/test/test.csproj]
Steps to reproduce
Include a complete code listing (or project/solution) that we can run to reproduce the issue.
Partial code listings, or multiple fragments of code, will slow down our response or cause us to push the issue back to you to provide code to reproduce the issue.
I can provide more upon further request, but it just seems like the error is getting eaten.
- Create new project
- Add EF Core
- Create initial migration
- Update DB
- Run application
- Modify model or context
- Create a new migration forgetting to stop the application
- Be greeted by an empty
Build failed.message
Further technical details
EF Core version: 2.0.3
Database Provider: MySql.Data.EntityFrameworkCore
Operating system: Mac OSX
IDE: VS 2017 Mac 7.5.3
EDIT: Correct error message.