Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
443 views
in Technique[技术] by (71.8m points)

c# - Cannot reference a Xamarin.Mac library which is targetting Xamarin.Mac Full

I'm currently trying to build a Xamarin.Mac project, and at this point I need to switch to Xamarin.Mac full.

I have two projects in my solution, both targeting Xamarin.Mac Modern, which has worked perfectly for now. After switching to Xamarin.Mac Full .NET Framework 4.5, I cannot complile my application. Compiling the library works perfectly, but when compiling my application I get the following error:

/Solution/ExecutableProject/MMP: Error MM1407: Mismatch between Xamarin.Mac reference
'/Solution/LibraryProject/bin/Debug/LibraryProject.dll' and target framework selected
'Xamarin.Mac,Version=v4.5,Profile=Full'. (MM1407) (ExecutableProject)

Both projects are targeting Xamarin.Mac Full .NET Framework 4.5. I have tried Xamarin.Mac Unsupported 4.5 but same issue.

As a work around I have imported the library contents into the application project which compiles fine, but I would rather not have to do this. Wondering if anyone has run into this problem and has a solution?

Cheers, David

question from:https://stackoverflow.com/questions/65927140/cannot-reference-a-xamarin-mac-library-which-is-targetting-xamarin-mac-full

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...