Forum Xamarin.Mac

Target Framework changes when storyboard is changed.

A_Jack_YA_Jack_Y Member ✭✭

I'm working on Mac OS desktop app with Xamarin.Mac.

Every time after I open and edit main.storyboard in XCode interface Builder, Project's target framework changes to "Xamarin.Mac Modern". Because of it I have to change it to "Xamarin.Mac Full" to build the project. Why this happens? Is this a bug?

** Error Message **

I get following Error message when I try to run the app if I don't change target framework from "Xamarin.Mac Modern"

System.io.FileNotFoundException thrown.
Could not load the file 'System.Net.Http'.

** My Environment **
Mac OS Catalina 10.15.6
Visual Studio for Mac 8.7.5
Xcode 11.7

Posts

  • SergSerg RUMember ✭✭

    Same issue happening for me. Looks like a bug, but it reproducing not for all projects (for clean, just created solution it almost always woks fine), so I still can't build minimal reproducible sample to submit bug report.

    Anyway, I will be happy to know about any additional details and fixes/workarounds.

    ** My Environment **
    Mac OS Catalina 10.15.7
    Visual Studio for Mac 8.7.8 build 4
    Xcode 12.0.1

  • ChrisHamonsChrisHamons USForum Administrator, Xamarin Team Xamurai

    If you can reproduce it, please file an issue at https://github.com/xamarin/xamarin-macios/issues/new

  • SergSerg RUMember ✭✭

    I was able to reproduce the issue on the just created project and reported the issue on GitHub. So, for reference for those who may find this topic in Google: https://github.com/xamarin/xamarin-macios/issues/10010

Sign In or Register to comment.