-
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
UWP commands: generate binding redirects #5471
Comments
see issue 6551 for solution by Librazy |
The UWP / SQLite getting started page (http://ef.readthedocs.io/en/latest/platforms/uwp/getting-started.html) should be updated to show that redirects for EF core 1.0.0 must be included in the App.config file. In addition, when I tried it the demo required "using EFGetStarted.UWP;" in MainPage.xaml.cs and App.xaml.ca The necessary redirects (from Librazy's solution) are:
|
Bringing back to 1.1.0-preview1. I made a comment on the PR at https://github.com/aspnet/EntityFramework.Tools/pull/12/files#r83714506 but I fogot github doesn't send it now until you publish a review and apparently I didn't submit it on time for it to be considered. I suspect the stopgap fix is missing some important issues we were trying to fix for 1.1.0-preview1. |
By hooking |
Notable changes: * Remove Use-DbContext * Allow -From and -To as positional arguments on Script-Migration * Remove support for xproj * Remove --config option from ef.exe * Hook AppDomain.AssemblyResolve when --no-appdomain Resolves dotnet/efcore#5471, resolves dotnet/efcore#6916 # Conflicts: # src/Microsoft.EntityFrameworkCore.Tools.DotNet/project.json # src/Microsoft.EntityFrameworkCore.Tools/project.json # src/Microsoft.EntityFrameworkCore.Tools/tools/EntityFrameworkCore.psm1
Because UWP commands use netcore50 assemblies but actually execute on net451, we can run into issues with assembly versions.
Example error:
Other examples:
Solution
We need to generate binding redirects so UWP tooling can get the right assembly versions
Workaround
Users can manually generate these. Add a file named "app.config" to the UWP project to explicitly redirect to the right assembly versions.
The text was updated successfully, but these errors were encountered: