phil ciraolo 86 Reputation points

I'm uisng VS 2022 17.2.0 preview 3.0 with the standard MAUI template. If I add "using Microsoft.Maui.Essentials;" I get the error: Error CS0234 The type or namespace name 'Essentials' does not exist in the namespace 'Microsoft.Maui' (are you missing an assembly reference?) I was my undertsanging Microsoft.Maui.Essentials is now part of Maui yet I get this error.

A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,216 questions
{count} votes

Accepted answer
  1. Rob Caplan - MSFT 5,437 Reputation points Microsoft Employee

    The Essentials classes are part of MAUI, but not under that name.

    RC1 changed the namespaces so that they are focused on specific functionality rather than bundling everything together in a monolithic "Essentials" namespace.

    The new namespaces are documented in the Migrating to RC1 page.


    0 comments No comments

0 additional answers

Sort by: Most helpful