Port Windows App To Mac
Visual Studio 2019's Pair to Mac feature discovers, connects to, authenticates with, and remembers Mac build hosts so that Windows-based iOS developers can work productively. Pair to Mac enables the following development workflow: Developers can write Xamarin.iOS code in Visual Studio 2019. For now, though, we know at least some of Microsoft’s first-party apps are being ported to Apple’s new ARM architecture, it’s possible Windows 10 will still work on the new Macs.
Answers
- Accepted Answer
Hi,
We don't have any guides for how you can port your existing Windows desktop app to OS X. I can offer advice once I know a little more about the results you're looking to achieve.
If you've built your app with WinForms then you should find the App should already run on OS X without any work from yourself. It is worth noting that the App will look incredibly ugly.
If you're looking to create an OS X app that you can sell on the Mac App Store then you will want to create the app using Xamarin.Mac. This will give you a 100% native user interface whilst allowing you to share the core functionality between your Windows and Mac version.
I would suggest checking out our documentation on code sharing. This will help you in reusing the existing C# from your Windows App on OS X.
1 (1)Internet. 5 (1). 3 (1)Client. Requires internet connection (25)Portal. Alternate ipad software for mac windows 10. Internet registration required (27).
If you want to learn about OS X development in C# in general, then you can watch my presentation from Evolve:
All the best,
Mike Hi Michael,
Thanks for your reply. Let me be more clear. We will implement a windows forms application. Afterwards we realized that senior management uses OS X. So somehow we need to use this windows forms app on OS X. Can I implement this on Xamarin and use it on both windows and MAC?
Thanks in advance.
Free classroom attendance mac app. Attendance can also be networked across the whole of an educational establishment allowing all teachers and admin staff to take a register from their classroom. Cross platform, works on both Mac.
Best Regards.
- GBXamarin Team, Insider, University, Developer Group Leader✭✭✭✭
@CenkKIZILDAG - it sounds like the best thing you could do is install Parallels on the senior managers mac and run the windows app from there. It's a lot of work to port, and if it's just for some managers then it'll be cheaper, quicker and much, much easier to use parallels. Especially if you need it on windows to support other users.
Hi Jim,
Thanks for your reply. What is Parallels? Would you please give me some information?
Thanks in advance & Best Regards.
- USForum Administrator, Xamarin TeamXamurai
A few things that might help if you decide to write a Xamarin.Mac application based on an existing Windows application (Beyond Mike's awesome advice):
- Having the right architecture really helps reduce the work required. I'm a big fan of MVVM (http://en.wikipedia.org/wiki/Model_View_ViewModel), but any MVC-like pattern separates most of the business logic from the UI.
- Moving that business logic to separate assemblies makes code sharing easier (PCL are awesome for this - http://developer.xamarin.com/guides/cross-platform/application_fundamentals/pcl/introduction_to_portable_class_libraries/).
- GBXamarin Team, Insider, University, Developer Group Leader✭✭✭✭
@CenkKIZILDAG - http://www.parallels.com/uk/products/desktop/
Virtual machine, runs windows on Mac OSX. In coherence mode you run windows apps pretty much as if they are mac apps and the OS virtualization is hidden from the user
Thanks @JimBennett. Can I use xamarin in visual studio 2013 Ultimate? I created a free xamarin account and install the required tools. But I don't know how to compile my existing code into MAC. Any ideas?
Best Regards.
- GBXamarin Team, Insider, University, Developer Group Leader✭✭✭✭
If you are using parallels then the windows version runs, no need to create a mac version
- USForum Administrator, Xamarin TeamXamurai
If you use a VM to run your Windows application on OS X, you won't need a mac version. However, you will need a copy of the VM for every computer running your application and it may feel less 'Apple-like'.
If you decide to write a native OS X application, you will need to develop on an Mac. The toolchain exists only on a Mac, and we currently don't have any Visual Studio 'remote' building like iOS.
Windows Migration Assistant transfers your contacts, calendars, email accounts, and more from a PC. It migrates this data to the appropriate places on your Mac. After migrating data to your Mac, authorize your computer for iTunes Store purchases. It’s important to authorize before you sync or play content that you download from the iTunes Store.
If you're migrating from one Mac to another Mac, follow the steps to move your content to a new Mac.
Before you begin
To prepare for a smooth migration:
- Make sure that Windows is up to date. Migration Assistant works with Windows 7 and later.
- Make sure that you know the name and password of an administrator account on your PC.
- Connect your Mac and PC to the same network, such as your home Wi-Fi network. Or connect an Ethernet cable between the ports on your Mac and PC to create a direct network connection. Some Mac models require an Ethernet adapter, such as the Belkin USB-C to Gigabit Ethernet Adapter or Apple Thunderbolt to Gigabit Ethernet Adapter.
- If you're using Microsoft OneDrive on your PC, follow Microsoft's instructions for uninstalling OneDrive before continuing. You can reinstall OneDrive after migration is complete.
Then use the check disk (chkdsk) utility on your PC to make sure that your Windows hard drive doesn’t have any issues:
- Right-click the Start button, then click Run.
- Type
cmd
and press Enter. Command Prompt opens. - At the prompt, type
chkdsk
and press Enter. - If the utility reports that it found problems, type the following, where drive is the letter that represents your Windows startup disk, such as D:
- Press Enter.
- At the prompt, type
Y
, then restart your PC. - Repeat this process until the check disk utility reports no issues. If the utility can't fix every issue that it finds, you might need to have your PC serviced. Then migrate your data to your Mac.
Move your data
This section guides you through migration, post-migration, and what to do if the steps don’t work for you.
How to move your information from a PC to your Mac
- On your PC, download and install the appropriate Windows Migration Assistant, based on the version of macOS on your Mac:
- Windows Migration Assistant for macOS Mojave or later
- Windows Migration Assistant for macOS Sierra and High Sierra
- Windows Migration Assistant for OS X El Capitan or earlier
- Quit any open Windows apps.
- Open Windows Migration Assistant, then click Continue.
- Start up your Mac. Setup Assistant automatically opens the first time you turn on your Mac. If you’ve already set up your Mac, open Migration Assistant, which is in the Utilities folder of your Applications folder.
- On your Mac, follow the onscreen prompts until you get to the migration pane of the assistant. Select the option to transfer your information “From a Windows PC,” then click Continue.
- When prompted, enter an administrator name and password.
- Click Continue to close any other open apps.
- In the migration window on your Mac, select your PC from the list of available computers. Then wait for the PC to show the same passcode that your Mac shows.
- When both computers display the same passcode, click Continue on your PC and Mac.
- Your Mac scans the drives on your PC to build a list of information to migrate. When the scan completes, select the information that you want to migrate to your Mac and click Continue. Learn about some of the data that you can transfer.
You can watch the progress and estimated time remaining on both the PC and your Mac. They tell you when migration is complete.
After you move your data
When migration completes, close Windows Migration Assistant on your PC. Then log in to the new user account on your Mac. The first time you log in to a user account migrated from your PC, you’re asked to set a password. You can use the same password that you used on your PC, or create a new password.
After logging in to the user account that you migrated, your computer for iTunes Store purchases. It’s important to authorize before you sync or play content downloaded from the iTunes Store.
If you have issues moving your data
- Quit all open apps on your PC, then try migrating your content again. For example, you can press Alt-Tab to choose an open application, then press Alt-F4 to quit it.
- If your PC doesn't appear in the Setup Assistant or Migration Assistant window on your Mac, make sure the computers are connected to the same network. You can create an network by connecting a single Ethernet cable between your Mac and PC. If that doesn't help, check for firewall software on your PC and turn it off. Firewall software can block network ports needed during migration. After migration completes, you can turn firewall software on again.
- If Migration Assistant doesn’t open on your PC, turn off any antivirus software on your PC. Then try to open Migration Assistant again. After migration completes. You can turn that software on again.
- If you still can't migrate your information successfully, you can use an external drive or file sharing to manually copy important data to your Mac.
What data can I transfer?
Migration Assistant lets you choose the data to move to your Mac. Here’s what moves over for specific apps and data types:
Email, contacts, and calendar information
Email messages, email-account settings, contacts, and appointments move based on which version of Windows you're using and which accounts you have.
Port Windows App To Mac
Outlook1
Data from 32-bit versions of Outlook in Windows 7 and later move as follows:
- People move to Contacts2
- Appointments move to the Calendar app
- IMAP and Exchange settings and messages move to the Mail app
- POP settings and messages move to Mail2
Windows Live Mail
Data from Windows Live Mail in Windows 7 and later moves as follows:
How To Get Windows On Mac
- IMAP settings and messages move to Mail
- POP settings and messages move to Mail2
Windows Mail
Data from Windows Mail in Windows 7 and later (excluding Windows 8) move as follows:
- IMAP settings and messages move to Mail
- POP settings and messages move to Mail2
- People move to Contacts
Bookmarks
Bookmarks from Internet Explorer, Safari for Windows, and Firefox move to Safari.
System settings
Language and location settings, and custom desktop pictures move to System Preferences. Your web browser homepage moves to Safari preferences.
Pictures
Photos and other images move to your home folder. You can then add them to Photos, or open Photos and let it search your Mac for photos to import.
iTunes content
Migration Assistant transfers your iTunes media as follows: music to the Apple Music app, videos to the Apple TV app, podcasts to the Apple Podcasts app, and audiobooks to the Apple Books app. What happened to iTunes?
Other files
Migration Assistant also moves these files:
- Files from the top-level folder of the currently logged-in user’s home directory
- Non-system files located in the Windows or Program Files folders
- Top-level folders located on the Windows system disk and other attached disks
1. Migration Assistant doesn’t support 64-bit versions of Outlook. You can manually migrate Mail, Contacts, or Calendars from Outlook 2013 or Outlook 2016 by signing in and entering the content on your Mac manually.
Convert Windows App To Mac
2. Migration Assistant transfers only the Mail or Contacts data that belongs to the logged-in Windows user. To transfer data from another user account, use Migration Assistant again while you’re logged in to another Windows account. Each time you migrate, your Mac creates a new user account.