Open mattleibow opened 22 hours ago
Wild idea: provide a net6.0 version of the assemblies that has:
[Obsolete ("This version of MAUI requires at least a TargetFramework of ...", IsError = true)]
on every API.
@mattleibow why does Microsoft.Maui.Controls have netstandard2.0 assemblies inside at all?
Do we know the answer to this question? MSBuild won't even know how to find these assemblies unless you use AppDomain.AssemblyResolve
. So, we probably have a copy of the netstandard2.0
assemblies in the Microsoft.Maui.Controls.Build.Tasks
package.
Description of Change
If we detect that you have installed .NET MAUI NuGet packages into an SDK which has some old version of the .NET MAUI workload, then we will fail the build.
The error code is MA003 and there is a property to skip this warning as well:
$(SkipCheckForMauiMinimumSupportedWorkloadVersion)
Errors will look like:
Issues Fixed
Fixes #25970