It works now. I have added UseMaui to my Android csproj file:
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net6.0-android33.0</TargetFramework>
<SupportedOSPlatformVersion>30.0</SupportedOSPlatformVersion>
<OutputType>Exe</OutputType>
<UseMaui>true</UseMaui>
<UseMauiEssentials>true</UseMauiEssentials>
Then Microsoft.Maui.Controls and Microsoft.Maui.Core are added to my project and I don't get the error System.IO.FileNotFoundException anymore.