How can I remove the platforms I do not need to compile for in .net MAUI?

Required Change In your .csproj file, remove the targets for the platforms you aren’t building for, reducing it to the following: <TargetFrameworks>net6.0-maccatalyst</TargetFrameworks> <TargetFrameworks Condition=”$([MSBuild]::IsOSPlatform(‘windows’))”>$(TargetFrameworks);net6.0-windows10.0.19041.0</TargetFrameworks> Optional Changes In your .csproj file, remove the supported version information for the platforms you aren’t building for, reducing it to the following: <SupportedOSPlatformVersion Condition=”$([MSBuild]::GetTargetPlatformIdentifier(‘$(TargetFramework)’)) == ‘maccatalyst'”>14.0</SupportedOSPlatformVersion> <SupportedOSPlatformVersion Condition=”$([MSBuild]::GetTargetPlatformIdentifier(‘$(TargetFramework)’)) == ‘windows'”>10.0.17763.0</SupportedOSPlatformVersion> … Read more

‘Format code’ and ‘sort using’ on save in Visual Studio 2022

Starting from VS2022-Preview2, there is no need to additional extension to “format on-save”, you just run a customized code cleanup that contains “Format document” action on-save: Customize your cleanup profile to perform “Format document” action (if not already there), in Analyze > Code Cleanup > Configure Code Cleanup Enable “Run code cleanup profile on save” … Read more

Failed to find a valid digest in the ‘integrity’ attribute for resource in Blazor app

This is an annoying issue indeed and I’m getting that error every now and then. It seems to happen after updating some packages, and the build processes fails to pick up the new SHA for the package. You can verify that this is the issue by finding the file containing the SHAs and compare the … Read more

Checking for any code updates Visual Studio 2019 and 2022

I had similar issues just like this, where continuing after hitting the breakpoint would constantly pop that up and delay the debugging sessions tremendously… After hours of trying to figure this one out, I think I may have found the solution. I am not sure how your settings are, but this seemed to start happening … Read more