Why clean on a Maui project results in errors?

Lloyd Sheen 1,476 Reputation points
2023-01-23T22:33:20.4566667+00:00

I do a simple clean (used to work without these errors) and get the following:

Severity Code Description Project File Line Suppression State

Error IDE1100 Error reading content of source file 'C:\NHLMauiFolder\NHLMauiApp First DOTNET7\obj\Debug\net7.0-android.NETCoreApp,Version=v7.0.AssemblyAttributes.cs' -- 'Could not find file 'C:\NHLMauiFolder\NHLMauiApp First DOTNET7\obj\Debug\net7.0-android.NETCoreApp,Version=v7.0.AssemblyAttributes.cs'.'. NHLMauiApp (net7.0-android) C:\NHLMauiFolder\NHLMauiApp First DOTNET7\obj\Debug\net7.0-android.NETCoreApp,Version=v7.0.AssemblyAttributes.cs 1 Active

and

Severity Code Description Project File Line Suppression State

Error IDE1100 Error reading content of source file 'C:\NHLMauiFolder\NHLMauiApp First DOTNET7\obj\Debug\net7.0-android\NHLMauiApp.AssemblyInfo.cs' -- 'Could not find file 'C:\NHLMauiFolder\NHLMauiApp First DOTNET7\obj\Debug\net7.0-android\NHLMauiApp.AssemblyInfo.cs'.'. NHLMauiApp (net7.0-android) C:\NHLMauiFolder\NHLMauiApp First DOTNET7\obj\Debug\net7.0-android\NHLMauiApp.AssemblyInfo.cs 1 Active

The errors which I am going to present one at a time did not happen until today and no changes to VS , some code changes but I don't edit the files mentioned. So why????

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
4,887 questions
.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,231 questions
{count} vote