Net standard 2.0 and net 4.6.1 in Mac-Project

ThomasFlemmingThomasFlemming DEMember ✭✭
edited December 2018 in Xamarin.Mac

I need to use some net-standard 2.0 libs in my existing Xamarin.Mac net 4.5 project.
Following this post I changed the csproj-file to target 4.6.1 and everything works.
The project compiles and runs.

But...

Now some of the system-references are showing an error:

And in project-settings the selector for the net-version is disabled:

How can I fix this?

Best Answer

Answers

  • ficnozlficnozl SIMember ✭✭

    @ChrisHamons I'm not sure if this is only my system, but if I just create a blank cocoa app and change the target FM to "Xamarin.Mac Full", the "can't find error" shows up at all references.
    Additionally I can't select any reference in Edit references dialog.
    If I change the target FW to 4.5, then everything works ok. I don't know what is special with .Net 4.5, but when set to .net 4.5 everything works ok.

    .Net 4.5.1, .Net 4.5.2, .Net 4.6 ... all show errors.

    Everything compiles and works, but it is an annoying bug since you can't add any references via UI.

  • ChrisHamonsChrisHamons USForum Administrator, Xamarin Team Xamurai

    That sounds wrong, could you file an issue https://github.com/xamarin/xamarin-macios/issues/new with steps to reproduce?

Sign In or Register to comment.