I am using Visual Studio Community 2015 with Update 3. I did the below :
This is my project.json file :
{
"dependencies": {
"Microsoft.EntityFrameworkCore.Design.Core": "1.0.0-preview2-final",
"Microsoft.EntityFrameworkCore.Sqlite": "1.0.0",
"Microsoft.EntityFrameworkCore.Tools": "1.0.0-preview2-final",
"Microsoft.NETCore.UniversalWindowsPlatform": "5.2.0"
},
"frameworks": {
"uap10.0": {}
},
"runtimes": {
"win10-arm": {},
"win10-arm-aot": {},
"win10-x86": {},
"win10-x86-aot": {},
"win10-x64": {},
"win10-x64-aot": {}
}
}
Running tooling commands on a UWP class library is not currently supported (tracking support for that in #6029).
We will add a more helpful error message to make this clearer. Closing as a duplicate of https://github.com/aspnet/EntityFramework/issues/5878
@yeasin90 you can workaround this by running commands on a UWP app instead.
@natemcmaster Thanks for the workaround. In that case,the DbContext class has to be inside UWP app, right? (POCO classes can be in UWP class library)
Yes. Finally got it working. Did the below steps :
@yeasin90 Can you share your project or a simple project working?
I'm stuck on this for a week.
@rubgithub : yes sure :) .. not at my desk right now, will upload the sample asap
@rubgithub : created a repo with my sample app. Have a look
Thanks @yeasin90