none
How do Windows Visual Studio 2017 C# projects work on Mac? RRS feed

  • Question

  • Can someone give me a basic understanding of how I would go about building a project from Windows on Mac? Should it simply build cleanly on Visual Studio for  Mac, even if it uses windows DLLs?
    Monday, January 28, 2019 10:40 PM

All replies

  • C# programs that use the .NET Core part of the Common Language Runtime will compile and run pretty much unchanged.  This also includes support for Windows Forms, but not WPF.

    It really is a MacOS app.  If you are using p/Invoke to call into Windows DLLs, those won't work.  On MacOS, p/Invoke can be used to call MacOS libraries.


    Tim Roberts | Driver MVP Emeritus | Providenza & Boekelheide, Inc.

    Tuesday, January 29, 2019 7:26 AM
  • Hi Donovan_Digital,

    Thank you for posting here.

    For your question, if you want to create a project on MAC, you could refer to the MSDN document.

    https://docs.microsoft.com/en-us/dotnet/core/tutorials/using-on-mac-vs

    Best Regards,

    Wendy


    MSDN Community Support
    Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.

    • Proposed as answer by Stanly Fan Friday, February 1, 2019 7:37 AM
    Tuesday, January 29, 2019 7:28 AM
    Moderator