-
Notifications
You must be signed in to change notification settings - Fork 43
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
Xamarin.Android9.0 target should be chosen over netstandard2.0 target by Android test project #236
Comments
I also notice that packing the multi-targeting library fails with:
|
Switching the TFM from |
I have the same problem with iOS. |
This seems like a NuGet bug. The extras has nothing to do with TFM selection. |
I wonder. The documented list of TFMs (if you scroll down far enough) include a table that lists |
Xamarin.iOS comes from https://docs.microsoft.com/en-us/xamarin/cross-platform/app-fundamentals/nuget-manual#nuget-package-xamarin-profiles I don't remember where I saw Xamarin.Android. |
What do you think about updating your README to reflect what currently works today, and we can pursue filing bugs against nuget to either honor the doc you linked to, or to correct the doc to reflect today's behavior? |
When I have a multi-targeting library that offers netstandard2.0 and Xamarin.Android9.0 targets, and I reference that from a Xunit Devices Android project, I expect the Xamarin.Android9.0 target to be used by the android app since it's platform specific, which should be preferred, I think.
But in the attached minimal repro we see the test fails because the netstandard2.0 build of the library is selected.
XamarinTest.zip
Am I misunderstanding something? How can I get the library's android target to be used in android projects that reference it?
The text was updated successfully, but these errors were encountered: