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

mac detection? #33

Open
tofutim opened this issue Nov 23, 2013 · 1 comment
Open

mac detection? #33

tofutim opened this issue Nov 23, 2013 · 1 comment

Comments

@tofutim
Copy link

tofutim commented Nov 23, 2013

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.

@mrward
Copy link
Owner

mrward commented Nov 23, 2013

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.

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

No branches or pull requests

2 participants