VS has no idea how to deal with images

Lloyd Sheen 1,386 Reputation points
2022-11-23T16:33:32.323+00:00

Severity Code Description Project File Line Suppression State
Error One or more invalid file names were detected. File names must be lowercase, start and end with a letter character, and contain only alphanumeric characters or underscores: hockeySchedule NHLMauiApp C:\Program Files\dotnet\packs\Microsoft.Maui.Resizetizer.Sdk\7.0.49\targets\Microsoft.Maui.Resizetizer.targets 525

So I have an image that does not conform to the stupid rules. Now it gets better. If I try to clean the solution so that it might work.

Severity Code Description Project File Line Suppression State
Error IDE1100 Error reading content of source file 'C:\Visual Studio Stuff\Maui NHL APP\NHLMauiApp ListView HighLights\obj\Debug\net6.0-android.NETCoreApp,Version=v6.0.AssemblyAttributes.cs' -- 'Could not find file 'C:\Visual Studio Stuff\Maui NHL APP\NHLMauiApp ListView HighLights\obj\Debug\net6.0-android.NETCoreApp,Version=v6.0.AssemblyAttributes.cs'.'. NHLMauiApp (net6.0-android) C:\Visual Studio Stuff\Maui NHL APP\NHLMauiApp ListView HighLights\obj\Debug\net6.0-android.NETCoreApp,Version=v6.0.AssemblyAttributes.cs 1 Active

So a file that I have access to is not there??? All I did was add an image and VS goes nuts. But wait of course every day you should have to restart VS at least once every 10 mins.

Oh and this time it does not work and its back to the file name problem. The previous image had the errors but a clean and restart fixed it.

MS DO SOME QASeverity Code Description Project File Line Suppression State
Error IDE1100 Error reading content of source file 'C:\Visual Studio Stuff\Maui NHL APP\NHLMauiApp ListView HighLights\obj\Debug\net6.0-android.NETCoreApp,Version=v6.0.AssemblyAttributes.cs' -- 'Could not find file 'C:\Visual Studio Stuff\Maui NHL APP\NHLMauiApp ListView HighLights\obj\Debug\net6.0-android.NETCoreApp,Version=v6.0.AssemblyAttributes.cs'.'. NHLMauiApp (net6.0-android) C:\Visual Studio Stuff\Maui NHL APP\NHLMauiApp ListView HighLights\obj\Debug\net6.0-android.NETCoreApp,Version=v6.0.AssemblyAttributes.cs 1 Active

MS DO SOME QA

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

1 answer

Sort by: Most helpful
  1. Michael Taylor 48,656 Reputation points
    2022-11-23T18:13:34.07+00:00

    Please use Report a Problem in Visual Studio to report the issue to MS. They don't normally respond to requests for help here.

    Since this is tied to MAUI and not Visual Studio itself then you might consider reporting the issue directly to that team on Github. Note that there is already at least one issue reported around finding files as discussed here so you might find the solution by looking there.

    0 comments No comments