Starting with MAUI in VSCODE

Oziel SilvaOziel Silva
2 min read

Now in .NET MAUI we can finally say good by to the VS For MAC

In this post we are gonna install, setup and create our first MAUI app. Stay on board.

First of all, we'll make sure that MAUI installed, you can do that running the command:

  • On Mac terminal sudo dotnet workload install maui

  • On Windows prompt as admin, dotnet workload install maui

Just to be safe and make sure no soldier was let behind(components), run the command dotnet tool install -gredth.net.MAUI.check, and then run maui-check

Create a folder to your project mkdir AwesomeProject and then navigate to the folder created.

Make sure to have installed the Xcode select for iOS xcode-select --install and dotnet workload install maui-android for android.

Creating the project

Now we're gonna create the maui project with this command: dotnet new maui

You may want to install the .NET MAUI extension from Microsoft on your VS Code.

Congratulations, you've built and run your first .NET MAUI app!

On VS Code open the folder for the project and then hit F5.

Now you can initialize an repo git init and continue developing your app.

I recommend that you

  • Add a .gitignore file before making any changes, to do that run this command: dotnet new gitignore

  • Add a .editorconfig file

  • Add .gitattributes file

  • And other configuration that you may need

If you are working on a team, this could save a lot of time later. Because each one use a specific configuration and this is the way to avoid unnecessary conflict.

Referências:

https://dotnet.microsoft.com/en-us/learn/maui/first-app-tutorial/intro

0
Subscribe to my newsletter

Read articles from Oziel Silva directly inside your inbox. Subscribe to the newsletter, and don't miss out.

Written by

Oziel Silva
Oziel Silva

I'm a .NET Software and Mobile developer with 8+ years of experience build softwares. For the past 4 years I've being focusing on the mobile development field.