-
Notifications
You must be signed in to change notification settings - Fork 517
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
Linking on Xamarin IOS apparently removes some EF Core 2.0 features #3441
Comments
Hello, I tried to test the supplied application but it does not build since the platform of the EF dependency lib does not match with the Xamarin.iOS runtime: Can you please fix the project and resubmit. Nevertheless, it is important to note that it might be the case that the linker is removing code that it believes is not used. You can configure the linker to NOT remove certain classes/methods/properties as indicated in the docs But if you can provide a compiling test app I will take a look to pinpoint the issue and if needed provide you with a config xml for your case. |
Hi
Huh, it builds finde on my machine. On my machine the error just shows up since to get migrations to work I seems to have to target both cnetstandard and coreapp like so in the proj file
<TargetFramework>netstandard2.0</TargetFramework>
<!--<TargetFrameworks>netcoreapp2.0;netstandard2.0</TargetFrameworks>
<RuntimeFrameworkVersion>2.0.3</RuntimeFrameworkVersion>-->
Anyway I changes it back to only netstandard2.0 which makes the VS error not showing up.
It compiles fine on my machine and the issue remains to be there.
Hope it helps
From: Manuel de la Pena [mailto:notifications@github.com]
Sent: Friday, February 09, 2018 12:59 PM
To: xamarin/xamarin-macios <xamarin-macios@noreply.github.com>
Cc: Simon Valentin Hansen <SVHA@cowi.com>; Author <author@noreply.github.com>
Subject: Re: [xamarin/xamarin-macios] Linking on Xamarin IOS apparently removes some EF Core 2.0 features (#3441)
Hello,
I tried to test the supplied application but it does not build since the platform of the EF dependency lib does not match with the Xamarin.iOS runtime:
[screen shot 2018-02-09 at 12 55 32]<https://user-images.githubusercontent.com/2190086/36026749-bf77cdf2-0d98-11e8-81c6-bd3b4cd2e913.png>
Can you please fix the project and resubmit. Nevertheless, it is important to note that it might be the case that the linker is removing code that it believes is not used. You can configure the linker to NOT remove certain classes/methods/properties as indicated in the docs<https://developer.xamarin.com/guides/cross-platform/advanced/custom_linking/>
But if you can provide a compiling test app I will take a look to pinpoint the issue and if needed provide you with a config xml for your case.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub<#3441 (comment)>, or mute the thread<https://github.com/notifications/unsubscribe-auth/AJY6DQpp-kLLpfMYj9AMl0EJ40PA8LiXks5tTDMFgaJpZM4R_tnv>.
|
might be a duplicate of #3394 |
Looks like the same issue.
Still not a reliable workaround as mentioned since one never know when other things break.
But I guess the conclusion is that the only place to fix this in a robust way is if its done in the Core EF framework??
From: Sebastien Pouliot [mailto:notifications@github.com]
Sent: Friday, February 09, 2018 4:02 PM
To: xamarin/xamarin-macios <xamarin-macios@noreply.github.com>
Cc: Simon Valentin Hansen <SVHA@cowi.com>; Author <author@noreply.github.com>
Subject: Re: [xamarin/xamarin-macios] Linking on Xamarin IOS apparently removes some EF Core 2.0 features (#3441)
might be a duplicate of #3394<#3394>
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub<#3441 (comment)>, or mute the thread<https://github.com/notifications/unsubscribe-auth/AJY6DXV-Aid8seGWfnma5oW6mpwRFenlks5tTF4BgaJpZM4R_tnv>.
|
@Kortdag Yes, they are the only people who knows what's used thru reflection (to preserve them) and that list can differ across versions (which we would not be able to deal with). If the previous workaround is not complete enough then please update your test case, re-open the issue and we'll have a look. |
Steps to Reproduce
Run on a real device. Haven´t testet on emulator.
Fix Info.plist certificates to you own
LinkEFSample.zip
The text was updated successfully, but these errors were encountered: