OsmSharp / ui

The UI components.
http://osmsharp.com/
GNU General Public License v2.0
139 stars 91 forks source link

Unable to install on VS 2015 Xamarin iOS project use NuGet #263

Open nhaizere opened 9 years ago

nhaizere commented 9 years ago

Could not install package 'OsmSharp 4.2.0.723'. You are trying to install this package into a project that targets 'Xamarin.iOS,Version=v1.0', but the package does not contain any assembly references or content files that are compatible with that framework. For more information, contact the package author.

Looks like target framework xamarinios1 wasn't included. Is there any solution to install this package? Btw dependency protobuf-net 2.0.0.668 can't be installed by same reason.

xivk commented 8 years ago

Note: This is an issue with the Nuget packages and Unified API.

xivk commented 8 years ago

Updated according to the information found here:

http://developer.xamarin.com/guides/cross-platform/advanced/nuget/

Can you verify?

nhaizere commented 8 years ago

@xivk looking at your commit you've just changed targets. But that type of project references different lib types. In your OsmSharp.iOS.UI Assembly its monotouch (http://i.imgur.com/S0baszN.png) but that new Xamarin iOS type project based on Xamarin.iOS Assembly so its definitely not a fix.

pauldendulk commented 8 years ago

I did the Xamarin.iOS Unified API upgrade for a larger project and it was actually quite a lot of work. Code changes as well. The automatic upgrade of Xamarin Studio caused the most work. Don't use it.

xivk commented 8 years ago

@pauldendulk Thanks!

This commit should already have added support for unified API:

https://github.com/OsmSharp/ui/commit/a2508b8f4ac94225ac2192877ce589cf3fbb83de

I'll check what happens in the build process with the result.

pauldendulk commented 8 years ago

Using NuHelper with this command: nuhelper shortFrameworkName .NETPortable,Version=v4.0,Profile=Profile147 Results in this string for the .nuspec: portable-net403+sl50+win+wp80+Xamarin.iOS10+MonoAndroid10+MonoTouch10 I expect this to solve the problem.

pauldendulk commented 8 years ago

It is also be possible to generate the nuget package directly from the csproj > nuget spec osmsharp.ui.csproj -IncludeReferencedProjects -version 0.0.1-pre The more automation the better. Not sure when to use which (generating from csproj or nuspec).

xivk commented 8 years ago

The protobuf-net dependency also doesn't install using Nuget on a fresh new 'Xamarin.iOS'. What a mess has this become all of a sudden.

mgravell commented 8 years ago

@xivk if there is a particular nuget target / moniker I should be using, let me know...

ahmedalejo commented 8 years ago

@mgravell ,

NuHelper.exe shortFrameworkName .NETPortable,Version=v4.0,Profile=Profile136 portable-net40+sl50+wp80+win+MonoAndroid10+MonoTouch10

the above indicates that you(protobuf-net) already support MonoAndroid10+MonoTouch10

please make it happen shoud be as easy as renaming the nuspec, i hope

Fox4148 commented 7 years ago

Find out how to install successfully, just go to the packages that failed (protobuf-net) and install the latest version. :) Enjoy