Skip to content
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

OsmSharp with Xamarin (Forms) #59

Closed
Sonnenspeer opened this issue May 31, 2018 · 5 comments
Closed

OsmSharp with Xamarin (Forms) #59

Sonnenspeer opened this issue May 31, 2018 · 5 comments
Assignees
Labels

Comments

@Sonnenspeer
Copy link

Sonnenspeer commented May 31, 2018

Hi.

Is it possible to use OsmSharp with Xamarin or Xamarin Forms?
I've tried to use the nuget version 5.0.8 from nuget PM but it doesn't go well and it's conflicting in my VS 2017 Xamarin Forms solution when I try to run it in Xamarin.Droid.

The mscorlib.dll is doubled up by MonoAndroid and the new installed dependency "Microsoft.NETCore.Portable.Compatibility (1.0.1)"

@xivk xivk self-assigned this May 31, 2018
@xivk xivk added the bug label May 31, 2018
@xivk
Copy link
Contributor

xivk commented May 31, 2018

Ok, I'll check before releasing 6.0, thanks for reporting.

@xivk
Copy link
Contributor

xivk commented May 31, 2018

As far as I can see this should work, the only issue I found was this one:

https://forums.xamarin.com/discussion/117108/build-errors-when-adding-microsoft-netcore-portable-compatibility-on-a-net-standard-project

I can add netstandard2.0 as a target, that may fix things and it's the way go moving forward anyway. There are other users here using OsmSharp on Xamarin AFAIK perhaps there is more feedback.

I also don't have a windows/mac machine right now to check, I'll try and check this myself later.

@xivk
Copy link
Contributor

xivk commented May 31, 2018

I cleaned things up and used dotnet pack to regenerate the nuspec files, if you compare the dependencies in this package:

https://www.nuget.org/packages/OsmSharp/6.0.0-pre14

With this one:

https://www.nuget.org/packages/OsmSharp/6.0.0-pre15

... you'll see the difference. I removed the compatibility pack so can you check if things work now with 6.0.0-pre15? This package will be release next week as a stable anyway, probably as version 6.0.1.

@Sonnenspeer
Copy link
Author

Thank you for the fast response and fix. This fix does its job well. No issue anymore.

@xivk
Copy link
Contributor

xivk commented May 31, 2018

Ok, great, thanks again for the feedback!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants