MauiProjectResource Constructors
Class Constructors 1 member
Represents a .NET MAUI project resource in the distributed application model.
Constructor(string, string) Section titled Constructor(string, string) Represents a .NET MAUI project resource in the distributed application model.
public class MauiProjectResource{ public MauiProjectResource( string name, string projectPath) { // ... }}Parameters
name string The name of the resource. projectPath string The path to the .NET MAUI project file. Remarks
This resource serves as a parent for platform-specific MAUI resources (Windows, Android, iOS, macOS). Use extension methods like
AddWindowsDevice or AddMacCatalystDevice to add platform-specific instances. MAUI projects are built on-demand when the platform-specific resource is started, avoiding long AppHost startup times while still allowing incremental builds during development.