Migrations in EF Core RC2

asp.net c# entity-framework-core

Question

When I try to add migration I get:

This preview of Entity Framework tools does not support targeting class library projects in ASP.NET Core and .NET Core applications. See http://go.microsoft.com/fwlink/?LinkId=798221 for details and workarounds.

But in my project.json file I have this:

"frameworks": {
    "net461": {
       "buildOptions": {
          "emitEntryPoint": true
       }
    }
}

What can I do?

Thanks!

1
4
5/22/2016 6:52:16 AM

Accepted Answer

Finally y put out this:

"frameworks": {
    "net461": {
    }
},
"buildOptions": {
          "emitEntryPoint": true
}
0
5/26/2016 5:25:46 PM

Popular Answer

Put in your project.json and create a Program.cs File

"buildOptions": {
    "emitEntryPoint": true,
    "preserveCompilationContext": true
},


Related Questions





Related

Licensed under: CC-BY-SA with attribution
Not affiliated with Stack Overflow
Licensed under: CC-BY-SA with attribution
Not affiliated with Stack Overflow