C# Tutorials


Dennis Ritchie

The only way to learn a new programming language is by writing programs in it.

Dennis Ritchie


The tutorials in this section are intended to get you started working with C# and in particular the .NET Multi-platform App UI (MAUI). If you have already worked with C# in the past, you should take the opportunity to extend your knowledge of the language. Tha might mean, for example, adding other features into the examples provided here. If you have never worked with C#, this is an opportunity to add one more language to your skillset.

Requirements

If you are using your own computer for these exercises, you will need a working configuration. The exercises assume that you will be using Visual Studio Code (VSCode), although other tools are available such as Visual Studio and Rider. If you want to use an alternative IDE/editor, you need to be prepared to adapt the instructions provided in the tutorials.

You should install .NET 9 for the purposes of this module. The dev-environment tutorial will set up a containerized development environment with .NET 9 SDK, PostgreSQL, and Android tooling pre-configured.

Core Tutorials (Start Here)

Follow these tutorials in order to build a complete cross-platform MAUI application:

  1. Development Environment Setup - Set up Docker, PostgreSQL, VS Code with .NET 9, and dev containers

MAUI + MVVM + Database Tutorial Series

This comprehensive tutorial series teaches you to build production-quality cross-platform applications:

  1. Getting Started - Overview of what you’ll build and prerequisites
  2. Download StarterApp - Download and explore the PostgreSQL-ready StarterApp architecture
  3. Simplify the Default Code - Transform authentication app into note-taking app
  4. Add Repository Pattern - Abstract data access for future API integration
  5. Advanced Migrations - Master database schema evolution
  6. Testing and Verification - Complete end-to-end testing

Estimated completion time: 6-9 hours total

StarterApp Resources

These supplementary resources provide deeper understanding of specific concepts from the main tutorial:

  1. StarterApp Overview - Introduction to the StarterApp architecture
  2. Authentication Deep Dive - Detailed explanation of authentication implementation
  3. Navigation Patterns - Advanced navigation techniques in MAUI

Advanced Topics

  1. Unit Testing - Writing and running unit tests for MAUI applications with PostgreSQL
  2. CI/CD Pipeline - Continuous integration and deployment setup

Troubleshooting

Having issues? See the Troubleshooting Guide for common problems and solutions.

Further resources


Table of contents


This site uses Just the Docs, a documentation theme for Jekyll.