mrward/monodevelop-nuget-addin

mac detection?

Opened this issue · 1 comments

Is there a way that a Monomac or Xamarin.Mac project could be discovered to receive .Mac components from a nuget package? Currently the .Mac project pulls the .NET 4.5 components, which is not the intended effect. Its ruining my nuget take over everything plan.

If NuGet is installing the .NET 4.5 assembly from the NuGet package then that is most likely to be because your project is targeting .NET 4.5. NuGet looks at the target framework in your project and finds the assembly that is compatible with that framework.

Looking at the NuGet source code it has a MonoMac target framework which could be used. I have not come across any NuGet packages that target the MonoMac framework but there are packages that have assemblies for the MonoTouch and MonoAndroid target frameworks. However I suspect that changing your project so it targets MonoMac will break compilation.