Hi,
 
You propose naming the version numbers of the installed .NET 6.0 SDK or runtime in your probing paths.
 
I did so some time ago (when 6.0.20) was the actual latest version of .NET 6.0. But recently I installed the .net 6.0.21 SDK.
I found out installing this removes the previous version folders. So the 6.0.20 folders disapeared from my computer, and I got a 6.0.21 folder instead.

And after some searching I found this github issue: https://github.com/dotnet/runtime/issues/90914
There it's stated this behaviour is 'by design'. And this will even occur by regular windows updates.
 
 
But... no worry. When you use the parent folders as probing paths, subfolders are also searched, and compilation succeeds as in:
 
{
   "al.assemblyProbingPaths":[
      "C:/Program Files/dotnet/shared/Microsoft.AspNetCore.App",
      "C:/Program Files/dotnet/shared/Microsoft.NETCore.App",
      "./.netpackages"
    ]
}