The purpose of this rule is detect the absence of the .NET project file analyzers. This can be achieved by adding the analyzers to the Directory.Build.targets.
<Project Sdk="Microsoft.NET.Sdk">
<ItemGroup Label="Analyzer">
<PackageReference Include="DotNetProjectFile.Analyzers" Version="*" PrivateAssets="all" IncludeAssets="runtime; build; native; contentfiles; analyzers; buildtransitive" />
</ItemGroup>
</Project>