I´m facing an issue with dotnet ef since I moved to ef core 1.1.0. I'm used to use Add-Migration from Microsoft.EntityFrameworkCore.Tools, but aparently is not working with ef 1.1.0. I then changed to Microsoft.EntityFrameworkCore.Tools.DotNet to use dotnet ef, but I´m getting the following message -> No executable found matching command "dotnet-ef"
I tried several tips from other topics, but none worked for me. My project.json file is
{
"dependencies": {
"Microsoft.NETCore.App": {
"version": "1.1.1",
"type": "platform"
},
"Microsoft.AspNetCore.Diagnostics": "1.1.1",
"Microsoft.AspNetCore.Server.IISIntegration": "1.1.1",
"Microsoft.AspNetCore.Server.Kestrel": "1.1.1",
"Microsoft.Extensions.Logging.Console": "1.1.1",
"Microsoft.AspNetCore.Razor.Tools": {
"version": "1.0.0-preview4-final",
"type": "build"
},
"Microsoft.AspNetCore.StaticFiles": "1.1.1",
"Microsoft.AspNetCore.Mvc": "1.1.2",
"Microsoft.Extensions.Configuration.Json": "1.1.1",
"Microsoft.EntityFrameworkCore.SqlServer": "1.1.1",
"Microsoft.EntityFrameworkCore.Tools.DotNet": "1.0.0-preview4-final"
},
"tools": {
"Microsoft.AspNetCore.Razor.Tools": "1.0.0-preview4-final",
"Microsoft.AspNetCore.Server.IISIntegration.Tools": "1.0.0-preview2-final",
"Microsoft.EntityFrameworkCore.Tools.DotNet": "1.0.0-preview4-final"
},
"frameworks": {
"netcoreapp1.0": {
"imports": [
"dotnet5.6",
"portable-net45+win8",
"dnxcore50"
]
}
},
"buildOptions": {
"emitEntryPoint": true,
"preserveCompilationContext": true
},
"runtimeOptions": {
"configProperties": {
"System.GC.Server": true
}
},
"publishOptions": {
"include": [
"wwwroot",
"web.config"
]
}
}
Do someone have a clue? Thx!