.NET project file analyzers community

Proj0700: Avoid defining items in SDK project

The .net.csproj SDK project is a placeholder for non-compiling files. Adding <Compile> items has no meaning, as the project has no (publically) accessable compilation artifacts.

Non-compliant

<Project Sdk="Microsoft.NET.Sdk">

  <ItemGroup>
    <Compile Include="Code.cs" />
  </ItemGroup>
  
</Project>

Compliant

<Project Sdk="Microsoft.NET.Sdk">

  <ItemGroup>
    <None Include="Code.cs" />
	<Content Include="Code.cs" />
	<AdditionalFiles Include="Code.cs" />
  </ItemGroup>
  
</Project>