-
Notifications
You must be signed in to change notification settings - Fork 3.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
EF Core tooling for .NET UWP #9666
Comments
As min, try to make the failure experience (directing to class library) better in 2.0.1. |
Hmm... Everything is working for me on 2.0.0 with the latest pre-releases: Windows: 16281 (rs3_release) |
@AndriySvyryd Any additional details on how to repro? I just:
|
Hmm. Try my project https://github.com/AndriySvyryd/UWPTest |
The other exception is from calling |
That repros.
Not a good sign since we can't control those references... |
@divega I don't think option 3 is feasible anymore. |
Interesting. Can't we control where |
Ok, after talking to @bricelam I understand that the version of |
@bricelam new fwlink for UWP tooling guidance is https://go.microsoft.com/fwlink/?linkid=858496. Right now it points to the UWP tutorial, which needs updating, but we can point it to a new page. |
Created #9827 to track the 2.0.1 part of this issue. Moving the remainder to 2.1. |
Fix #9423 as part of this work. |
@AndriySvyryd any ETA on EF 2.0.1? |
It's not 2.0.1, but the nightly dev feed includes all of its fixes and more if anyone is eager to try them out. |
Oh look: there's a nightly feed of the patch available now. |
@bricelam either i'm doing something wrong or this nightly feed patch has not fixed this problem. I followed the above mentioned announcement but still getting the error:-
below is a picture that describe better than words. |
@Eilon @natemcmaster It looks like |
I'm not aware of any reasons to remove it. DotNetCliToolReference packages are installed in context independent from the users's app. That means you don't need to add netcoreapp2.0 to install a DotNetCliToolReference. That said, since the pre-release version of this package depends on a version of Microsoft.NETCore.App that isn't on NuGet.org yet and we didn't mirror it into our patch feed, users must add this feed as well |
@bricelam Some feedback on the issue:-
Hope this will helps you (If it is some kind of bug that needs to be fixed) |
This was happening to me trying to upgrade a 1.1 UWP app with Sqlite to 2.0.
I moved EF parts into a .NET Standard class library and thought it helped, but once the classes were fleshed out the error returned. I did not switch to the dev feed, this is with 2.0 bits still. The tooling can generate a simple class with minimal data annotations. I experimented until the problem was identified, which in my case was relationships. If I dropped the "details" from the "master" (remove |
Apparently aspnetcore 2.0.1 official release is out and I'm still having the "Could not load type 'System.Globalization.CultureInfo'" issue. Did this get fixed for anyone without the dev feed? |
Any updates? I can't get it to work with the data layer inside a separate class library project and the latest 2.1.0-preview1-final Version of EntityFrameworkCore. |
@Ullmie02 Cross-targeting is a bit broken with UWP. Instead, create a dummy .NET Core console application to use as your startup project. The dummy project will reference your data layer. |
Closing this in favor of tracking via duplicate #7152 for Xamarin, which has the same underlying issues. |
Currently, EF Core tooling attempts to use .NET Framework to run user code on UWP applications. In the past, we encountered problems with that approach whenever types that were not the same between UWP and .NET Framework. One example of that was DataAnnotations. We addressed those with binding redirects and intercepting assembly resolution.
While testing EF Core 2.0 with .NET UWP 6.0 we found that there are new types that present similar problems. E.g.:
There different ways we can address, in order from short, middle and long term:
Use more binding redirect and assembly resolution tricks to make more types work (talked to @bricelam, he thinks this is feasible)The text was updated successfully, but these errors were encountered: