VS Code Owns .NET MAUI on Mac!

Microsoft officially retired Visual Studio for Mac on August 31, 2024. Now, the company recommends .NET MAUI developers use Visual Studio Code with a set of extensions.

In this blog post, we’ll walk through the basic setup to get started.

After Aug 31, 2024Visual Studio for Mac will no longer be supported or maintained after August 31, 2024. Visual Studio for Mac will still be available as a legacy installation only via my.visualstudio.com for users with Visual Studio subscriptions.

Steps:

1. Install Visual Studio Code for Mac. Link

2. Install the VS Code extensions:

  • .NET MAUI extension: link
  • .NET Install Tool extension: link

3. Click on Search and type “>”. Select Install New .NET SDK

4. Install the latest SDK (.NET 9)

5. Open terminal and verify SDK.

Run dotnet workload list and it will show the following:

6. (Optional) Install the SDK using terminal

  • Run sudo dotnet workload install maui-android
  • Run sudo dotnet workload install maui-ios
  • Run sudo dotnet workload install maui-maccatalyst
  • Run sudo dotnet workload install maui-tizen

7. Install Android Studio: link

8. Install Xcode: link

9. Click on Search and type “>”. Select .NET: New Project and then

10. Select the Location and set the project name:

11. Run project on Emulator (Android)

11.1. Click on Search and type “>”. Select .NET: New Project and then .NET MAUI: Select Android Device

11.2. Select the emulator

11.3. Select Run and Debug

11.4. Select C# and then Launch Startup Project

12. Run project on Simulator (iOS)

12.1. Click on Search and type “>”. Select .NET: New Project and then .NET MAUI: Select iOS Device

12.2. Select the simulator

12.3. Select Run and Debug

12.4. Select C# and then Launch Startup Project

Conclusion

With Visual Studio for Mac now retired, moving to VS Code is not just a workaround, it’s the new standard for .NET MAUI development on macOS. Thanks to the available extensions and a lightweight setup, VS Code offers a smooth and efficient experience.

If you’re just getting started, this setup will keep you up to speed and ready for the future of cross-platform development.

References

  • .NET MAUI installation: link

Picture of Junior Saravia

Junior Saravia

Junior Saravia earned his B.S. in Systems Engineering from the National University of Engineering in Lima, Peru. He has 5 years of experience in cross-platform Mobile Development using Xamarin and now .NET MAUI. He has been focused on keeping up-to-date with new technology trends such as IoT, microcontrollers, and various coding best practices. His strong collaboration and adaptability to face up to challenging projects have proven his ability to offer valuable solutions to clients through complex technologies. Beyond the realm of technology, Junior enjoys practicing soccer, swimming, and the freedom of biking outdoors.

Free Consultation

Sign up for a FREE consultation with one of Trailhead's experts.

"*" indicates required fields

This field is for validation purposes and should be left unchanged.

Related Blog Posts

We hope you’ve found this to be helpful and are walking away with some new, useful insights. If you want to learn more, here are a couple of related articles that others also usually find to be interesting:

Our Gear Is Packed and We're Excited to Explore With You

Ready to come with us? 

Together, we can map your company’s software journey and start down the right trails. If you’re set to take the first step, simply fill out our contact form. We’ll be in touch quickly – and you’ll have a partner who is ready to help your company take the next step on its software journey. 

We can’t wait to hear from you! 

Main Contact

This field is for validation purposes and should be left unchanged.

Together, we can map your company’s tech journey and start down the trails. If you’re set to take the first step, simply fill out the form below. We’ll be in touch – and you’ll have a partner who cares about you and your company. 

We can’t wait to hear from you! 

Thank you for reaching out.

You’ll be getting an email from our team shortly. If you need immediate assistance, please call (616) 371-1037.