<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>Forem: Mayank Patil</title>
    <description>The latest articles on Forem by Mayank Patil (@mayank-scanbot).</description>
    <link>https://forem.com/mayank-scanbot</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F1625029%2Ff815f0a0-acb6-487e-b18a-479739f4f805.jpeg</url>
      <title>Forem: Mayank Patil</title>
      <link>https://forem.com/mayank-scanbot</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://forem.com/feed/mayank-scanbot"/>
    <language>en</language>
    <item>
      <title>Visual Studio alternatives for Mac – finding a new home for MAUI development</title>
      <dc:creator>Mayank Patil</dc:creator>
      <pubDate>Tue, 18 Jun 2024 12:05:26 +0000</pubDate>
      <link>https://forem.com/scanbot-sdk/visual-studio-alternatives-for-mac-finding-a-new-home-for-maui-development-l43</link>
      <guid>https://forem.com/scanbot-sdk/visual-studio-alternatives-for-mac-finding-a-new-home-for-maui-development-l43</guid>
      <description>&lt;p&gt;Support for Visual Studio for Mac will end on August 31, 2024. So, which tools should MAUI developers use when Visual Studio for Mac is no more? We’ve compared JetBrains Rider, the .NET MAUI extension for VS Code, and the CLI approach!&lt;/p&gt;




&lt;h2&gt;
  
  
  Introduction
&lt;/h2&gt;

&lt;p&gt;Man, choosing a tool for developing cross-platform Xamarin apps on a Mac used to be so easy. Microsoft had our backs with Xamarin Studio, and later with Visual Studio for Mac.&lt;/p&gt;

&lt;p&gt;Recently though, Microsoft decided to add a little twist!&lt;/p&gt;

&lt;p&gt;Yes, the Xamarin MVP Monkey is giving us all a dramatic goodbye… 😢&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F2ne5u5vru2jc2d8odgb1.gif" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F2ne5u5vru2jc2d8odgb1.gif" alt="Piano-playing monkey"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;And Visual Studio for Mac is going with it. 🎹🎹 Yep, you heard that right: Visual Studio for Mac 17.6 will ride off into the sunset on August 31, 2024. &lt;/p&gt;

&lt;p&gt;Microsoft’s decision to retire the IDE isn’t unsurprising: The company is focusing on developing the .NET MAUI framework, the successor of Xamarin.Forms.&lt;/p&gt;

&lt;p&gt;But fear not, dear developers, because Microsoft has a plan. 😉&lt;/p&gt;

&lt;p&gt;They’re doubling down on Visual Studio Code as the go-to coding tool for Mac users. It’s like saying goodbye to your trusty old car and hopping into a shiny new rocket ship! &lt;/p&gt;

&lt;p&gt;But there are other options that might just become your preferred development environment. So in this article, we’ll explore these options. &lt;/p&gt;

&lt;p&gt;So strap in folks, because the MAUIverse is calling. 🚀&lt;/p&gt;

&lt;h2&gt;
  
  
  MAUI on Mac: your options
&lt;/h2&gt;

&lt;p&gt;Alright, it’s time to check out the tools!&lt;/p&gt;

&lt;p&gt;We’ll be covering three viable options for developing our .NET MAUI applications:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;The &lt;strong&gt;.NET MAUI extension in Visual Studio Code&lt;/strong&gt; for Mac&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;JetBrains Rider&lt;/strong&gt; for Mac&lt;/li&gt;
&lt;li&gt;Using the &lt;strong&gt;command line tools on Mac&lt;/strong&gt; (with an editor of your choice)&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;In this post, we’ll look at how to set up all options, their usage, and their pros and cons. After all, with great tools comes great responsibility (and maybe a few bugs too!).&lt;/p&gt;

&lt;p&gt;In particular, we’ll go through the following for each option:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Installation&lt;/li&gt;
&lt;li&gt;Creating a new project&lt;/li&gt;
&lt;li&gt;Running and debugging&lt;/li&gt;
&lt;li&gt;Using the NuGet package manager&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Let’s start with the .NET MAUI extension in Visual Studio Code, which is the option recommended by Microsoft.&lt;/p&gt;

&lt;h2&gt;
  
  
  .NET MAUI extension in Visual Studio Code
&lt;/h2&gt;

&lt;p&gt;The .NET &lt;strong&gt;M&lt;/strong&gt;ulti-Platform &lt;strong&gt;A&lt;/strong&gt;pp &lt;strong&gt;UI&lt;/strong&gt; (MAUI) extension is the gateway to the MAUI realm for Visual Studio Code users on Mac. It comes with all the necessary tools for developing cross-platform apps.&lt;/p&gt;

&lt;p&gt;With the ability to develop and debug your creations on various devices, emulators, and simulators directly within VS Code, Microsoft aims to replicate the seamless experience of Visual Studio for Mac.&lt;/p&gt;

&lt;p&gt;The &lt;a href="https://marketplace.visualstudio.com/items?itemName=ms-dotnettools.dotnet-maui" rel="noopener noreferrer"&gt;.NET MAUI extension&lt;/a&gt; is built on top of the powerful &lt;a href="https://marketplace.visualstudio.com/items?itemName=ms-dotnettools.csharp" rel="noopener noreferrer"&gt;C#&lt;/a&gt;, &lt;a href="https://marketplace.visualstudio.com/items?itemName=ms-dotnettools.csdevkit" rel="noopener noreferrer"&gt;C# Dev Kit&lt;/a&gt; and &lt;a href="https://marketplace.visualstudio.com/items?itemName=ms-dotnettools.vscode-dotnet-runtime" rel="noopener noreferrer"&gt;.NET Install Tool&lt;/a&gt; extensions, which gives you:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;IntelliSense&lt;/li&gt;
&lt;li&gt;An intuitive solution explorer&lt;/li&gt;
&lt;li&gt;Package management and project references&lt;/li&gt;
&lt;li&gt;Debugging&lt;/li&gt;
&lt;li&gt;Unit tests&lt;/li&gt;
&lt;li&gt;…and more!&lt;/li&gt;
&lt;/ul&gt;

&lt;blockquote&gt;
&lt;p&gt;💡 Installing the &lt;a href="https://marketplace.visualstudio.com/items?itemName=ms-dotnettools.dotnet-maui" rel="noopener noreferrer"&gt;VS Code .NET MAUI&lt;/a&gt; extension also automatically installs the &lt;a href="https://marketplace.visualstudio.com/items?itemName=ms-dotnettools.csharp" rel="noopener noreferrer"&gt;C#&lt;/a&gt;, &lt;a href="https://marketplace.visualstudio.com/items?itemName=ms-dotnettools.csdevkit" rel="noopener noreferrer"&gt;C# Dev Kit&lt;/a&gt; and &lt;a href="https://marketplace.visualstudio.com/items?itemName=ms-dotnettools.vscode-dotnet-runtime" rel="noopener noreferrer"&gt;.NET Install Tool&lt;/a&gt; extensions as dependencies.&lt;/p&gt;

&lt;p&gt;⚠️ Keep in mind that the .NET MAUI extension is still in preview. It therefore has some limitations and kinks to work out.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h3&gt;
  
  
  C# Dev Kit and C# extensions
&lt;/h3&gt;

&lt;p&gt;&lt;a href="https://marketplace.visualstudio.com/items?itemName=ms-dotnettools.csdevkit" rel="noopener noreferrer"&gt;C# Dev Kit&lt;/a&gt; is an extension designed to enhance your coding experience. Among other things, it gives you a solution explorer to navigate your code in the IDE as well as integrated unit test discovery and execution to ensure your code is test-driven.&lt;/p&gt;

&lt;p&gt;This extension builds on the powerful C# language capabilities provided by the &lt;a href="https://marketplace.visualstudio.com/items?itemName=ms-dotnettools.csharp" rel="noopener noreferrer"&gt;C# extension&lt;/a&gt;. C# Dev Kit’s tools and utilities integrate natively with VS Code and help developers to write and debug code faster, to avoid errors, and to simplify maintenance.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;💡 C# Dev Kit is free for individuals, academia, and open-source development. For organizations, it’s included with Visual Studio Professional and Enterprise subscriptions.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h3&gt;
  
  
  Installation
&lt;/h3&gt;

&lt;p&gt;Visual Studio Code is a lightweight but powerful source code editor. It comes with built-in support for JavaScript, TypeScript and Node.js and has a rich ecosystem of extensions for other languages and runtimes (such as C++, C#, Java, Python, PHP, Go, .NET).&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;a href="https://code.visualstudio.com/Download" rel="noopener noreferrer"&gt;Download VS Code&lt;/a&gt; and install it.&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://dotnet.microsoft.com/en-us/download" rel="noopener noreferrer"&gt;Download .NET&lt;/a&gt; and install it (make sure you download the right file for Apple Silicon machines).&lt;/li&gt;
&lt;li&gt;In Visual Studio Code, install the &lt;a href="https://marketplace.visualstudio.com/items?itemName=ms-dotnettools.dotnet-maui" rel="noopener noreferrer"&gt;.NET MAUI extension&lt;/a&gt;. This will also install C#, C# Dev Kit and .NET Install Tool as dependencies.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fdt04nyadgumppigsqj6c.gif" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fdt04nyadgumppigsqj6c.gif" alt="Installing the .NET MAUI extension in Visual Studio Code"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Installing the .NET MAUI extension in Visual Studio Code&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;For iOS/macOS development:&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;We need to install &lt;a href="https://developer.apple.com/xcode/" rel="noopener noreferrer"&gt;Xcode&lt;/a&gt; for its SDK and simulators. Downloading Xcode requires an Apple ID.&lt;/li&gt;
&lt;li&gt;Download and install Xcode.&lt;/li&gt;
&lt;li&gt;Install the Xcode command line tools with the following command:&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;code&gt;xcode-select --install&lt;/code&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Launch Xcode. On the first open it will ask you to set up the iOS Simulator, so let’s do that.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Your iOS setup is now ready to run on simulators. However, to run the app on your device, you will need a valid certificate and provisioning profile (you can find more information &lt;a href="https://developer.apple.com/help/account/manage-profiles/create-a-development-provisioning-profile/" rel="noopener noreferrer"&gt;here&lt;/a&gt;).&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;For Android development:&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Install &lt;a href="https://learn.microsoft.com/en-us/java/openjdk/download#openjdk-17" rel="noopener noreferrer"&gt;Microsoft OpenJDK 17&lt;/a&gt;. Older JDK versions can cause issues and are therefore not recommended.&lt;/li&gt;
&lt;li&gt;During the installation, JDK will prompt you to install Rosetta (if not already installed).&lt;/li&gt;
&lt;li&gt;After installing JDK, create a new project and install the Android SDK using the following command:
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;sudo dotnet build -t:InstallAndroidDependencies
-f:net8.0-android
-p:AndroidSdkDirectory=/Users/MyLocalFolderName/Library/Android/sdk
-p:JavaSdkDirectory=/Library/Java/sdk
-p:AcceptAndroidSDKLicenses=True
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;In this command, &lt;code&gt;AndroidSdkDirectory&lt;/code&gt; specifies where to install the Android SDK (e.g., &lt;code&gt;/Users/MyLocalFolderName/Library/Android/sdk&lt;/code&gt;) and &lt;code&gt;JavaSdkDirectory&lt;/code&gt; where to install the Java SDK (e.g., &lt;code&gt;/Users/MyLocalFolderName/Library/Java/sdk&lt;/code&gt;).&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;💡 Another approach is to use &lt;a href="https://developer.android.com/studio" rel="noopener noreferrer"&gt;Android Studio&lt;/a&gt; to manage the SDK, APIs, tools, emulators, debug options, logs, etc. This requires some &lt;a href="https://developer.android.com/tools/variables" rel="noopener noreferrer"&gt;environment variable setup&lt;/a&gt;.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;ul&gt;
&lt;li&gt;Restart VS Code and check out the &lt;code&gt;Output&lt;/code&gt; tab, which gives you information about the Android and iOS/macOS SDK status.&lt;/li&gt;
&lt;li&gt;Now you have to accept the license for your Android SDK.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;In VS Code, press &lt;strong&gt;Cmd + Shift + P&lt;/strong&gt;, select “&lt;code&gt;.NET MAUI: Configure Android&lt;/code&gt;”, and you should get an option to accept the license. Alternatively, restart your project, and you’ll be prompted to accept the license via the command line.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Set the JDK and Android SDK paths as well. In VS Code, press &lt;strong&gt;Cmd + Shift + P&lt;/strong&gt; and select the option “&lt;code&gt;.NET MAUI: Configure Android&lt;/code&gt;”&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Now you should be able to run it on your Android device.&lt;/p&gt;

&lt;p&gt;Finally, we need to install the .NET MAUI workloads with the following command:&lt;/p&gt;

&lt;p&gt;&lt;code&gt;dotnet workload install maui&lt;/code&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  Creating a new project
&lt;/h3&gt;

&lt;p&gt;We will create our first Visual Studio Code demo application using the .NET MAUI extension as follows:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Click the &lt;code&gt;Create .NET Project&lt;/code&gt; button or press &lt;strong&gt;Cmd + Shift + P&lt;/strong&gt;
&lt;/li&gt;
&lt;li&gt;Select .NET: &lt;code&gt;New Project&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;Select the project template &lt;code&gt;.NET MAUI App&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;Select a project directory&lt;/li&gt;
&lt;li&gt;Enter the project name and submit&lt;/li&gt;
&lt;li&gt;Confirm &lt;code&gt;Create Project&lt;/code&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fmsur4yfunqrnn2039htd.gif" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fmsur4yfunqrnn2039htd.gif" alt="Creating a new project in VS Code using the .NET MAUI extension"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Creating a new project in VS Code using the .NET MAUI extension&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;If your project gets a build time error regarding the .NET MAUI tools, use the following command to install the necessary workloads:&lt;/p&gt;

&lt;p&gt;&lt;code&gt;dotnet workload restore&lt;/code&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  Running and debugging
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;On the bottom toolbar in Visual Studio Code, you will see the toolbar item  “{ }” . With this, you can check the current target configuration.&lt;/li&gt;
&lt;li&gt;Through the  “{ }”  button, you can also update the startup project and the target device options.&lt;/li&gt;
&lt;li&gt;After selecting the configurations, you can simply press &lt;strong&gt;F5&lt;/strong&gt; to run the project. You can also open the &lt;code&gt;RUN AND DEBUG&lt;/code&gt; tab from the side panel of VS Code and click on the &lt;code&gt;Run and Debug&lt;/code&gt; button.&lt;/li&gt;
&lt;li&gt;Debugging is similar to what we had in Visual Studio for Mac, like setting the breakpoints in the code.&lt;/li&gt;
&lt;li&gt;Changing the configuration from Debug to Release mode isn’t supported yet. However, you can do that by adding a custom configuration in a &lt;code&gt;launch.json&lt;/code&gt; file. After adding these configurations, you can use them from the &lt;code&gt;RUN AND DEBUG&lt;/code&gt; tab.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The &lt;code&gt;launch.json&lt;/code&gt; file is created locally in the &lt;code&gt;.vscode&lt;/code&gt; folder. Here is what the configurations look like:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;"configurations": [
    {
        "name": "Developer",
        "type": "maui",
        "request": "launch",
        "configuration": "Debug",
        "preLaunchTask": "maui: Build"
    },
    {
        "name": "Production",
        "type": "maui",
        "request": "launch",
        "configuration": "Release",
        "preLaunchTask": "maui: Build"
    }
  ]
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fstagingscanbot.wpengine.com%2Fwp-content%2Fuploads%2F2024%2F06%2Fvisual-studio-alternatives-for-mac-gif-3.gif" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fstagingscanbot.wpengine.com%2Fwp-content%2Fuploads%2F2024%2F06%2Fvisual-studio-alternatives-for-mac-gif-3.gif" alt="Running and debugging in VS Code"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Running and debugging in VS Code&lt;/em&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  Package management &amp;amp; project reference
&lt;/h3&gt;

&lt;p&gt;&lt;strong&gt;NuGet package manager:&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Visual Studio Code doesn’t really have a full-fledged NuGet package manager GUI like Visual Studio for Mac does. But there are some alternative options.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Restoring the packages:&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;You can set Automatic NuGet restore to ON. VS Code will now restore the packages automatically if the project is missing them.&lt;/p&gt;

&lt;p&gt;&lt;code&gt;Visual Studio Code -&amp;gt; Settings -&amp;gt; Extensions -&amp;gt; C# -&amp;gt; LSP Server -&amp;gt; Dotnet -&amp;gt; Enable Automatic Restore&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;Alternatively, go to &lt;code&gt;Visual Studio Code -&amp;gt; Settings&lt;/code&gt; and search for the following text: ”&lt;code&gt;dotnet.projects.enableAutomaticRestore&lt;/code&gt;”&lt;/p&gt;

&lt;p&gt;This is the option we’re looking for:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fjii88cp13vt3gxohp123.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fjii88cp13vt3gxohp123.png" alt="Enable Automatic Restore"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;“Enable Automatic Restore”&lt;/em&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;The other option is to use the command line to restore the packages. We’ll look at this in the next section.&lt;/li&gt;
&lt;li&gt;To change or update the NuGet source, you have to modify the &lt;code&gt;Nuget.Config&lt;/code&gt; file directly, which you can find at &lt;code&gt;/Users/&amp;lt;username&amp;gt;/.config/NuGet.Config&lt;/code&gt;.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Adding NuGet packages and project references:&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Adding, removing, and updating packages is easy. It’s not like the NuGet package manager window in Visual Studio for Mac, but it does the job.&lt;/p&gt;

&lt;p&gt;To add a NuGet package or a project reference, go through the Solution Explorer context menu like so:&lt;/p&gt;

&lt;p&gt;&lt;code&gt;VS Code File Explorer -&amp;gt; Solution Explorer -&amp;gt; Expand Solution -&amp;gt; Right Click on the project&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fwjz5lfzcu1avy6r0e3lt.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fwjz5lfzcu1avy6r0e3lt.png" alt="Add Project Reference/NuGet Package"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;To remove/update a NuGet package, you can expand the project dependencies and navigate to the exact package.&lt;/li&gt;
&lt;li&gt;To remove a project reference, you have to directly edit the .csproj file, e.g.:
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;&amp;lt;ItemGroup&amp;gt;
    &amp;lt;ProjectReference Include="..\..\FirstClassLibrary.csproj" /&amp;gt;
&amp;lt;/ItemGroup&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  JetBrains Rider
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Flhgd6fw0rmzguqpm4wsj.gif" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Flhgd6fw0rmzguqpm4wsj.gif" alt="The power of JetBrains Rider"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;I believe this GIF adequately portrays Rider’s power. But will you be able to handle it?&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;JetBrains Rider is a full-fledged cross-platform .NET IDE providing a complete environment for developing .NET MAUI apps.&lt;/p&gt;

&lt;p&gt;Rider works with a wide variety of .NET Framework, Mono, and .NET Core project types. It supports most languages used in .NET development, including C#, VB.NET, F#, ASP.NET syntax, XAML, XML, JavaScript, TypeScript, JSON, HTML, CSS, and SQL. Its large set of powerful features that also work across different languages lets you deliver quality code faster than ever.&lt;/p&gt;

&lt;p&gt;All this makes it the best choice for replacing Visual Studio for Mac.&lt;/p&gt;

&lt;p&gt;One important thing to note, however, is that JetBrains Rider &lt;a href="https://www.jetbrains.com/rider/buy" rel="noopener noreferrer"&gt;requires a paid subscription&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Highlights:&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;More stable and reliable compared to Visual Studio for Mac.&lt;/li&gt;
&lt;li&gt;Eliminates a lot of the annoyances of developing .NET MAUI apps in Visual Studio for Mac.&lt;/li&gt;
&lt;li&gt;A full-fledged IDE, unlike the .NET MAUI extension for VS Code.&lt;/li&gt;
&lt;li&gt;The decompiler allows you to jump directly into the third-party package/code in your project, even from a particular XAML class implementation (e.g., Label).&lt;/li&gt;
&lt;li&gt;Powerful IntelliSense code completion, refactoring, debugging, version control and more.&lt;/li&gt;
&lt;li&gt;Convenient shortcuts that increase productivity, a bunch of different IDE settings, and more.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  Installation
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;Download JetBrains Rider &lt;a href="https://www.jetbrains.com/rider/download/#section=mac" rel="noopener noreferrer"&gt;here&lt;/a&gt; and follow the general macOS application installation process.&lt;/li&gt;
&lt;li&gt;For iOS/macOS development, we must install &lt;a href="https://developer.apple.com/xcode/" rel="noopener noreferrer"&gt;Xcode&lt;/a&gt;.&lt;/li&gt;
&lt;li&gt;For Android, we need to install &lt;a href="https://learn.microsoft.com/en-us/java/openjdk/download#openjdk-17" rel="noopener noreferrer"&gt;Microsoft OpenJDK 17&lt;/a&gt; and &lt;a href="https://developer.android.com/studio" rel="noopener noreferrer"&gt;Android Studio&lt;/a&gt;.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  Initial JetBrains Rider settings
&lt;/h3&gt;

&lt;p&gt;&lt;strong&gt;For Android development:&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;After installing Android Studio to get the Android SDK, launch JetBrains Rider.&lt;/li&gt;
&lt;li&gt;Install the &lt;code&gt;Rider Android Support&lt;/code&gt; plugin to get started with Android:&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;code&gt;JetBrains Rider -&amp;gt; Settings -&amp;gt; Plugins -&amp;gt; Install "Rider Android Support"&lt;/code&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;After installing this plugin, a new tab will show up in the JetBrains Rider settings:&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;code&gt;JetBrains Rider -&amp;gt; Settings -&amp;gt; Build, Execution, Deployment -&amp;gt; Android&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;Here, set the paths for the &lt;code&gt;Android SDK&lt;/code&gt; and the &lt;code&gt;Microsoft Open JDK 17&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;Make sure the developer options are enabled on your Android device. This completes the setup for Android development, so your app is ready to roll on your device.&lt;/p&gt;

&lt;p&gt;You also have the option to create and launch an emulator from Android Studio.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;For iOS development:&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Install Xcode, then launch it to download/install the iOS simulators.&lt;/li&gt;
&lt;li&gt;Now launch JetBrains Rider and set the Xcode path:&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;code&gt;JetBrains Rider -&amp;gt; Settings -&amp;gt; Build, Execution, Deployment -&amp;gt; Apple Platforms&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;After doing this, your iOS setup is complete, and your iOS app is also ready to roll on the simulator. To run the app on your iOS device, however, you will need a valid certificate and provisioning profile (you can find more information &lt;a href="https://developer.apple.com/help/account/manage-profiles/create-a-development-provisioning-profile/" rel="noopener noreferrer"&gt;here&lt;/a&gt;).&lt;/p&gt;

&lt;p&gt;Alright! Then let’s dive into creating a new application with Rider.&lt;/p&gt;

&lt;h3&gt;
  
  
  Creating a new project
&lt;/h3&gt;

&lt;p&gt;Creating a new project is similar to Visual Studio for Mac: Just create a solution and select a project template.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F7oai8w41t046kzfn6m4u.gif" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F7oai8w41t046kzfn6m4u.gif" alt="Creating a new project in JetBrains Rider"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Creating a new project in JetBrains Rider&lt;/em&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  Running and debugging
&lt;/h3&gt;

&lt;p&gt;In Rider, there are separate sections for selecting a platform configuration, be it Android or iOS. The device and simulator/emulator lists are populated depending on the platform.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fjhl94o0aptk7vigqssjk.gif" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fjhl94o0aptk7vigqssjk.gif" alt="Device and simulator/emulator lists in Rider"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Device and simulator/emulator lists in Rider&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;For debugging, select the debug button in the bottom left of the IDE window.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fsh3dqr5cotd3lg9wyfg2.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fsh3dqr5cotd3lg9wyfg2.png" alt="Debugging in Rider"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  NuGet package manager
&lt;/h3&gt;

&lt;p&gt;Rider integrates a simple interface for the NuGet package manager. It provides a good interface for search filters, adding/selecting custom sources, and logs, installation of packages for multiple projects at once, and more.&lt;/p&gt;

&lt;p&gt;You can also right-click on the project and select Manage NuGet package, which will open this tab at the bottom.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fmur1fn9ue6uf411y6y38.gif" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fmur1fn9ue6uf411y6y38.gif" alt="Manage NuGet package"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Managing NuGet packages in Rider&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;The buttons on the left allow you to restore/download, update, refresh packages and much more.&lt;/p&gt;

&lt;h2&gt;
  
  
  .NET CLI on Mac
&lt;/h2&gt;

&lt;p&gt;For the elite developers who prefer flexing their CLI muscle over relying on fancy IDE magic and crave results based solely on their precise inputs rather than any third-party influence, we raise a digital salute. 🫡&lt;/p&gt;

&lt;p&gt;I call those people Terminal Ninjas. With unwavering confidence in their commands, they bend the CLI to their will. If you’re among them: Kudos! Let’s get started.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F1xl4dxyi12nrwwywsmsf.gif" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F1xl4dxyi12nrwwywsmsf.gif" alt="Choosing the terminal"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Choosing the terminal&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;Just like the other options, this one also has its pros and cons. It might take a bit of R&amp;amp;D until you find all the necessary commands needed for your development process.&lt;/p&gt;

&lt;h3&gt;
  
  
  Installation
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;Download the .NET SDK &lt;a href="https://dotnet.microsoft.com/en-us/download" rel="noopener noreferrer"&gt;here&lt;/a&gt; and install it.&lt;/li&gt;
&lt;li&gt;Install the .NET MAUI workload by using this command in the terminal (with or without &lt;code&gt;sudo&lt;/code&gt;, depending on your privileges):&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;code&gt;dotnet workload install maui&lt;/code&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;To verify the workload installation, use the following command:&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;code&gt;dotnet workload list&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;For developing iOS/macOS and Android applications, we need to do the following:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;For iOS/macOS development, install the &lt;a href="https://developer.apple.com/xcode/" rel="noopener noreferrer"&gt;Xcode&lt;/a&gt; tool for SDK and simulators.&lt;/li&gt;
&lt;li&gt;For Android development, install the &lt;a href="https://learn.microsoft.com/en-us/java/openjdk/download#openjdk-17" rel="noopener noreferrer"&gt;Microsoft OpenJDK&lt;/a&gt; and &lt;a href="https://developer.android.com/studio" rel="noopener noreferrer"&gt;Android Studio&lt;/a&gt; for the Android SDK and emulators.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;For the individual &lt;strong&gt;iOS&lt;/strong&gt; and &lt;strong&gt;Android&lt;/strong&gt; setup steps, please refer to the .NET MAUI extension section above.&lt;/p&gt;

&lt;h3&gt;
  
  
  Creating a new project
&lt;/h3&gt;

&lt;p&gt;Let’s jump into all the core commands you’ll need: &lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;For creating a new project, the basic command is:&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;code&gt;dotnet new maui&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;Here, &lt;code&gt;maui&lt;/code&gt; is the template for MAUI projects. Typically, you’ll do this after some basic preparation, like creating a directory for the project:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;mkdir FirstCLIApp
cd FirstCLIApp
dotnet new maui
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This series of commands creates a new project based on the template &lt;code&gt;maui&lt;/code&gt; in the directory name &lt;code&gt;FirstCLIApp&lt;/code&gt;. So by default your solution will be created as &lt;code&gt;FirstCLIApp.sln&lt;/code&gt;, which will have a MAUI project named &lt;code&gt;FirstCLIApp.csproj&lt;/code&gt;.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;For setting a project name, use the following command:&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;code&gt;dotnet new maui -n "FirstCLIApp"&lt;/code&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;To check out all available project templates for a project, you can use this command:&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;code&gt;dotnet new list&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;For more parameters you can use while creating a project, see below. You can find further details in the &lt;a href="https://learn.microsoft.com/en-us/dotnet/core/tools/dotnet-new" rel="noopener noreferrer"&gt;Microsoft docs&lt;/a&gt;.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;dotnet new &amp;lt;TEMPLATE&amp;gt;
    [--dry-run]
    [--force]
    [-lang|--language {"C#"|"F#"|VB}]
    [-n|--name &amp;lt;OUTPUT_NAME&amp;gt;]
    [-f|--framework &amp;lt;FRAMEWORK&amp;gt;]
    [--no-update-check]
    [-o|--output &amp;lt;OUTPUT_DIRECTORY&amp;gt;]
    [--project &amp;lt;PROJECT_PATH&amp;gt;]
    [-d|--diagnostics]
    [--verbosity &amp;lt;LEVEL&amp;gt;]
    [Template options]
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  Running and debugging
&lt;/h3&gt;

&lt;p&gt;In this section, we will look at the commands related to restoring, building and running the project. For the full command reference, check out the &lt;a href="https://learn.microsoft.com/en-us/dotnet/core/tools/" rel="noopener noreferrer"&gt;.NET CLI docs&lt;/a&gt;.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Restore packages:&lt;/strong&gt; Restores the dependencies and tools of a project.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;code&gt;dotnet restore&lt;/code&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Build:&lt;/strong&gt; The following command will restore the project dependencies and build the app.
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;dotnet build
    [&amp;lt;PROJECT&amp;gt;|&amp;lt;SOLUTION&amp;gt;]
    [-a|--arch &amp;lt;ARCHITECTURE&amp;gt;]
    [--artifacts-path &amp;lt;ARTIFACTS_DIR&amp;gt;]
    [-c|--configuration &amp;lt;CONFIGURATION&amp;gt;] 
    [-f|--framework &amp;lt;FRAMEWORK&amp;gt;]
    [--disable-build-servers]
    [--force] [--interactive] 
    [--no-dependencies] 
    [--no-incremental]
    [--no-restore] 
    [--nologo] 
    [--no-self-contained] 
    [--os &amp;lt;OS&amp;gt;]
    [-o|--output &amp;lt;OUTPUT_DIRECTORY&amp;gt;]
    [-p|--property:&amp;lt;PROPERTYNAME&amp;gt;=&amp;lt;VALUE&amp;gt;]
    [-r|--runtime &amp;lt;RUNTIME_IDENTIFIER&amp;gt;]
    [--self-contained [true|false]] 
    [--source &amp;lt;SOURCE&amp;gt;]
    [--tl:[auto|on|off]] 
    [--use-current-runtime, --ucr [true|false]]
    [-v|--verbosity &amp;lt;LEVEL&amp;gt;] 
    [--version-suffix &amp;lt;VERSION_SUFFIX&amp;gt;]
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Run:&lt;/strong&gt; The following command will restore the project dependencies and build the app.
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;dotnet run 
    [-a|--arch &amp;lt;ARCHITECTURE&amp;gt;] 
    [-c|--configuration &amp;lt;CONFIGURATION&amp;gt;]
    [-f|--framework &amp;lt;FRAMEWORK&amp;gt;] 
    [--force] [--interactive]
    [--launch-profile &amp;lt;NAME&amp;gt;] 
    [--no-build]
    [--no-dependencies] 
    [--no-launch-profile] 
    [--no-restore]
    [--os &amp;lt;OS&amp;gt;]
    [--project &amp;lt;PATH&amp;gt;]
    [-r|--runtime &amp;lt;RUNTIME_IDENTIFIER&amp;gt;]
    [--tl:[auto|on|off]]
    [-v|--verbosity &amp;lt;LEVEL&amp;gt;]
    [[--] [application arguments]]
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;We can run the above commands without any parameters, but that sets them to their default values, which aren’t always what we need. So let’s jump into some use cases.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;iOS simulator:&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;dotnet build
    -t:Run // target
    -f net8.0-ios // framework
    -p:_DeviceName=:v2:udid=&amp;lt;MY_SPECIFIC_UDID&amp;gt; // property
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Here, the .NET MAUI iOS app is launched on a particular simulator by passing the simulator’s unique identifier. There are two ways to get the identifier:&lt;/p&gt;

&lt;p&gt;Using Xcode:&lt;/p&gt;

&lt;p&gt;&lt;code&gt;Xcode -&amp;gt; Windows -&amp;gt; Devices and Simulators -&amp;gt; Right-click on the simulator -&amp;gt; Copy Identifier&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;Or using the command line (the following command prints all the devices in the terminal along with their identifiers):&lt;/p&gt;

&lt;p&gt;&lt;code&gt;/Applications/Xcode.app/Contents/Developer/usr/bin/simctl list&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;iOS device:&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;With the developer mode enabled on your iPhone or iPad, use the following command:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;dotnet build
    -t:Run // target
    -f net8.0-ios // framework
    -p:RuntimeIdentifier=ios-arm64 // property
    -p:_DeviceName=&amp;lt;MY_SPECIFIC_UDID&amp;gt; // property
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;You can retrieve the device identifiers in the same way as the simulator identifiers.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Android emulator/device:&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;The following command works for both devices and emulators. If you use a device, make sure that developer mode is enabled.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;dotnet build 
    -t:Run // target
    -f net8.0-android // framework
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Finally, on the topic of debugging: When using the command line, debugging gets more complicated. It’s a huge topic that deserves an article of its own, so we won’t cover it here.&lt;/p&gt;

&lt;h3&gt;
  
  
  NuGet package manager
&lt;/h3&gt;

&lt;p&gt;These are the commands used frequently to manage NuGet packages:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Restore the packages and tools for the project:&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;code&gt;dotnet restore | dotnet restore &amp;lt;PROJECT_FILE&amp;gt;&lt;/code&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Clear the local NuGet cache:&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;code&gt;dotnet nuget locals all --clear&lt;/code&gt; &lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Add/remove a package:&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;code&gt;dotnet remove [&amp;lt;PROJECT&amp;gt;] package &amp;lt;PACKAGE_NAME&amp;gt;&lt;/code&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;dotnet add [&amp;lt;PROJECT&amp;gt;] package &amp;lt;PACKAGE_NAME&amp;gt;
    [-f|--framework &amp;lt;FRAMEWORK&amp;gt;]
    [--interactive]
    [-n|--no-restore]
    [--package-directory &amp;lt;PACKAGE_DIRECTORY&amp;gt;]
    [--prerelease]
    [-s|--source &amp;lt;SOURCE&amp;gt;]
    [-v|--version &amp;lt;VERSION&amp;gt;]
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;There are many other important aspects, such as adding/removing/updating/disabling a custom source.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Add a NuGet source:
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;dotnet nuget add source &amp;lt;PACKAGE_SOURCE_PATH&amp;gt;
    [--name &amp;lt;SOURCE_NAME&amp;gt;]
    [--username &amp;lt;USER&amp;gt;]
    [--password &amp;lt;PASSWORD&amp;gt;]
    [--store-password-in-clear-text]
    [--valid-authentication-types &amp;lt;TYPES&amp;gt;]
    [--configfile &amp;lt;FILE&amp;gt;]
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ul&gt;
&lt;li&gt;Remove a NuGet source:&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;code&gt;dotnet nuget remove source &amp;lt;NAME&amp;gt; [--configfile &amp;lt;FILE&amp;gt;]&lt;/code&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Enable or disable a NuGet source:&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;code&gt;dotnet nuget disable source &amp;lt;NAME&amp;gt; [--configfile &amp;lt;FILE&amp;gt;]&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;&lt;code&gt;dotnet nuget enable source &amp;lt;NAME&amp;gt; [--configfile &amp;lt;FILE&amp;gt;]&lt;/code&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Update a NuGet source:
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;dotnet nuget update source &amp;lt;NAME&amp;gt;
    [--source &amp;lt;SOURCE&amp;gt;]
    [--username &amp;lt;USER&amp;gt;]
    [--password &amp;lt;PASSWORD&amp;gt;]
    [--store-password-in-clear-text]
    [--valid-authentication-types &amp;lt;TYPES&amp;gt;]
    [--configfile &amp;lt;FILE&amp;gt;]
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Display a list of all available NuGet sources. It reads from the global Nuget.Config file:&lt;/p&gt;

&lt;p&gt;&lt;code&gt;dotnet nuget list source&lt;/code&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Short comparison
&lt;/h2&gt;

&lt;p&gt;Based on our own usage, we would like to provide feedback for the tools discussed in this article. As the command line approach is not a tool per se, we will only compare the .NET MAUI extension for Visual Studio Code and JetBrains Rider.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Rating factors&lt;/th&gt;
&lt;th&gt;.NET MAUI extension&lt;/th&gt;
&lt;th&gt;JetBrains Rider&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;IntelliSense / editor&lt;/td&gt;
&lt;td&gt;★★★★★&lt;/td&gt;
&lt;td&gt;★★★★★&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Solution explorer&lt;/td&gt;
&lt;td&gt;★★★&lt;/td&gt;
&lt;td&gt;★★★★★&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Decompiler &amp;amp; navigation&lt;/td&gt;
&lt;td&gt;★★&lt;/td&gt;
&lt;td&gt;★★★★★&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Running and debugging&lt;/td&gt;
&lt;td&gt;★★★&lt;/td&gt;
&lt;td&gt;★★★★★&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Package manager&lt;/td&gt;
&lt;td&gt;★&lt;/td&gt;
&lt;td&gt;★★★★★&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Project ref. management&lt;/td&gt;
&lt;td&gt;★&lt;/td&gt;
&lt;td&gt;★★★★★&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Feature richness&lt;/td&gt;
&lt;td&gt;★★★&lt;/td&gt;
&lt;td&gt;★★★★★&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Free of charge?&lt;/td&gt;
&lt;td&gt;✔️*&lt;/td&gt;
&lt;td&gt;❌&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;h3&gt;
  
  
  Elaboration on some points
&lt;/h3&gt;

&lt;p&gt;&lt;strong&gt;Solution explorer:&lt;/strong&gt;&lt;br&gt;
The solution explorer in Rider offers more features and settings compared to the VS Code .NET MAUI extension. It’s also more interactive.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Running and debugging:&lt;/strong&gt;&lt;br&gt;
The run-and-debug experience in Rider is superior, with more configuration options and an easy-to-use interface. For example, you can see the list of simulators and devices separately, unlike in the VS Code .NET MAUI extension.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Decompiler &amp;amp; navigation:&lt;/strong&gt;&lt;br&gt;
One very helpful feature in Rider is that you can navigate to the class declaration directly, even if it is a third-party library. Other than that, code navigation is similar in both.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Package manager:&lt;/strong&gt;&lt;br&gt;
The package manager in the VS Code .NET MAUI extension is very basic: You can just add/update/remove a NuGet package. But inside Rider, you get a dedicated tool where you can add/update/remove NuGet packages as well as NuGet sources.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Project reference management:&lt;/strong&gt;&lt;br&gt;
Project reference management is very easy in Rider. If you’re using the VS Code .NET MAUI extension, you have to manually add and remove references.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Feature richness:&lt;/strong&gt;&lt;br&gt;
Rider is a full-fledged IDE, so it has many more features compared to the VS Code .NET MAUI extension.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Pricing:&lt;/strong&gt;&lt;br&gt;
Rider is paid software. The VS Code .NET MAUI extension depends on the C# Dev Kit extension, which is free for individual, academic, and open-source developers. Enterprises will need a Visual Studio Professional subscription.&lt;/p&gt;

&lt;h2&gt;
  
  
  Recommendation
&lt;/h2&gt;

&lt;p&gt;We hope this comparison of the currently available Visual Studio alternatives for Mac helped you choose the best option for developing .NET MAUI applications.&lt;/p&gt;

&lt;p&gt;We’d like to leave you with the following advice:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;If you prefer a &lt;strong&gt;fully fledged, powerful IDE&lt;/strong&gt;, go with JetBrains Rider. &lt;/li&gt;
&lt;li&gt;If you prefer to have a &lt;strong&gt;combination of a lightweight IDE and the CLI&lt;/strong&gt;, then the .NET MAUI Extension in VS Code is your best bet. &lt;/li&gt;
&lt;li&gt;If you &lt;strong&gt;don’t want to rely on anything but your commands&lt;/strong&gt;, then go with the CLI. However, this option still requires a good editor, which in most cases will be VS Code.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Good luck in selecting your approach and happy coding!&lt;/p&gt;

</description>
      <category>dotnet</category>
      <category>ios</category>
      <category>programming</category>
      <category>vscode</category>
    </item>
  </channel>
</rss>
