I have .Net Winform project(c#) working in windows.Now,i want to do same project, to work as OSX App in Mac. As per my understanding Microsoft recently launched Visual studio for Mac preview and also it support OSX app development using Xamarin.Mac and also it support .Netcore .
Active2 years, 5 months ago
Visual Studio For Mac Free
Instead of creating Osx app from scratch,i need to reuse the code which is available in .net winform project.
In general terms Visual Studio for Mac is an integrated Macintosh development environment for C# and F# applications that run on iOS, Android, and Mac targets, with a variety of application forms.
can i develop UI application using .netcore project? I think .netframework and .netcore more or less same.can i port .netframework to .netcore project and create osx app ?or
can i use xamarin.mac and reuse the .netframework c# code to create osx app?
I am new to this,so kindly suggest the best way to create OSX app using Visual studio for Mac preview. (Basically i need Tabel view,form controls and graph(there i use zedgraph).Is these view are available here.
Manoj Prabhakar
Manoj PrabhakarManoj Prabhakar
1 Answer
In general, the 'standard' way of developing cross platform applications is to separate as much of your logic as possible into shared libraries of some type and create 'thin' UIs specific to each platform.
Depending on your need, you could easily make that shared code netstandard/PCL/etc compatible and share between platforms or just recompile the project in each solution.
NSTableView will likely solve your needs, but expect it to be significantly more primitive that what you are used to on Windows. Graph controls don't come built in, so you'll need to find a vendor that ships Cocoa controls or draw them yourself.
Here is the quickstart documentation.
Xamarin.Forms support for macOS is coming in the future, currently earmarked for Q2 this year.
Chris HamonsChris Hamons
Got a question that you can’t ask on public Stack Overflow? Learn more about sharing private information with Stack Overflow for Teams.
Not the answer you're looking for? Browse other questions tagged winformsvisual-studioxamarin.net-corexamarin.mac or ask your own question.
I'm attempting to get an ASP.NET Core 1 solution to work on both Mac/Windows, but I am having issues with it. I am working with Mac Visual Studio Version Preview 1 (7.0 build 347) and Windows Visual Studio Version 4.6.01586. Hallmark card studio 2018 mac.
When I attempt to open/compile the ASP.NET Core 1 application from Windows to Mac it tells me to 'Please build the project and retry, or set the OutputPath and AssemblyName properties appropriately to point at the correct location for the target assembly' but when I try to build it doesn't work (it skips).
Vice versa, when I try it from Mac to Windows it doesn't even open and it comes up with the error message 'Error while trying to load the project '../ASPNETCoreWindows.xproj': Unknown solution item type.
Not sure if the different version types plays any role in this, but I also noticed that the Mac version doesn't include a project.json. For reference, I have two blank ASP.NET that can be used for testing:
https://github.com/ChristianRRL/ASPNETCoreWindows/ https://github.com/ChristianRRL/ASPNETCoreMac/ Visual studio professional 2012 for mac. Comments are closed.
|
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |