none
Can I build a C# EntityFramework GUI application that will run both in Windows and MacOS? RRS feed

  • Question

  • Hi,

    Looking into doing some cross-platform desktop application that will work both in Windows and MacOS using C# and EntityFramework. I assume some free version of SQLServer can be installed in MacOS and an application development IDE will be available for MacOS development. Please confirm these suppositions. Also, where does Xamarin come into play here? Which kind of C# project can work both in MacOS and Windows? Is EntityFramework supported in MacOS?

    Regards,

    Juan


    Juan Dent

    • Moved by CoolDadTx Monday, October 22, 2018 2:43 PM EF related
    Saturday, October 20, 2018 12:47 AM

All replies

  • https://database.guide/how-to-install-sql-server-on-a-mac/

    .NET Core is a across platform framework. EF Core is a cross platform ORM. 

    https://medium.com/@yostane/entity-framework-core-and-sqlite-getting-started-on-macos-and-visual-studio-code-27f3830db77c

     However it doesn't work for  Windows desktop .NET Core. .NET Core version 3 and it will be limited to the Windows desktop solutions.

    Saturday, October 20, 2018 5:30 AM
  • Hi,

    Can. I use EntityFramework with SQLITE to develop a C# desktop windows app? Will this app be runnable in MacOS? If not, how can I create a cross-platform desktop application using C# that also uses a SQLITE database? Or if this is not possible, then what configuration makes it possible to create cross-platform desktop applications using C# (even if not using SQLITE)?

    I am a single developer/student exploring cross-platform development. Any hints will be greatly appreciated!

    Thanks,

    Juan Dent


    Juan Dent

    Saturday, October 20, 2018 6:32 PM
  • Hi Juan Dent,

    In addition, you could write a asp.net web api with entity framework core, Then you create different desktop application on MacOS and Windows that consume the WebAPI.

    Here is the document about creating a Web API with ASP.NET Core and Visual Studio for Mac for your reference.

    https://docs.microsoft.com/en-us/aspnet/core/tutorials/first-web-api-mac?view=aspnetcore-2.1

    Best regards,

    Zhanglong


    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.

    Monday, October 22, 2018 2:31 AM
    Moderator