Microsoft.maui.Essentials

phil ciraolo 86 Reputation points
2022-04-20T12:32:10.707+00:00

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.

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

Accepted answer
  1. Rob Caplan - MSFT 5,542 Reputation points Microsoft Employee
    2022-04-21T16:32:17.403+00:00

    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.

    --Rob

    0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.