locked
Target Framework changes when storyboard is changed. RRS feed

  • Question

  • User396726 posted

    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

    Tuesday, September 15, 2020 7:13 AM

All replies

  • User210254 posted

    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

    Friday, October 16, 2020 7:00 AM
  • User35201 posted

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

    Friday, October 16, 2020 7:01 PM
  • User210254 posted

    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

    Friday, October 30, 2020 8:03 AM