I have several projects using Asp.Net Core 1.0 and Entity Framework Core 1.1.0
I have the first approach to porting code, and I'm posting it on Azure through Visual Studio 2015.
As I applied migration to Azure Sql Server, the checkbox in the publication was turned on: "Entity Framework Migrations - apply this migration when publishing", where I entered the connection string.
I updated several packages, and now for one of my projects I donβt see this option apply migrations to the publication more. I see that he is trying to discover data contexts, but finds nothing (although he is there in the same project ..)
See below:
I suspect this is due to some version of the dependencies for the project, and not to my IDE, because I use the same Visual Studio (2015 update 3) for both projects.
I could not find information about this. What dependence does this option allow? If I find out which version is problematic, then the remaining question is how to apply migration when publishing then?
Both projects have a migration in the web project, and both projects use "Microsoft.AspNetCore.Identity.EntityFrameworkCore": "1.1.0"
UPDATE 1 . I managed to find what is connected with this. It seems that if I use these dependencies:
"Microsoft.EntityFrameworkCore.Tools": "1.0.0-preview2-final", "Microsoft.EntityFrameworkCore.Design": "1.0.0-preview2-final"
Visual studio can find the data context and offer the possibility of applying migration when publishing. But if I use newer versions of these dependencies, for example:
"Microsoft.EntityFrameworkCore.Tools": "1.1.0-preview4-final", "Microsoft.EntityFrameworkCore.Design": "1.1.0"
Then this option to apply the migration will disappear, and VS will not be able to find any data context when publishing.
I need to find out which last status is associated with the migration agent and Asp.Net Core.