MSBuildLocator is not available in .NET Core

~What version of the package are you using? How are you referencing it in your project?~
This package is available for netcoreapp2.1 and higher and is not compatible with netcoreapp2.0. Can you retarget your application to a higher version?
Note that the .NET Core 2.0, 2.1, 2.2, and 3.0 runtimes are now out of support.
I actually started from .NET 5 and went down to >NET Core 2.0 and it was the same for all of them. It happens when I use PackageReference. I downloaded the assembly and referenced it from disk and it works fine (netcoreapp3.1).
What version of MSBuildLocator are you using? How are you referencing it?
I have a project (targeting net6.0, but it also worked when targeting other frameworks) with <PackageReference Include="Microsoft.Build.Locator" Version="1.4.1" />, and it works fine.