Skip to content

Latest commit

 

History

History
28 lines (22 loc) · 583 Bytes

File metadata and controls

28 lines (22 loc) · 583 Bytes

Proj0022: Build action includes should exist

<ItemGroup> build taks nodes such as <Compile>, <Content>, <EmbeddedResource>, <None>, and <AdditionalFiles can define an Include. This include should refer to one or multiple files.

Non-compliant

When README.md does not exist.

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

  <ItemGroup>
    <None Include="README.md" />
  </ItemGroup>
  
</Project>

Compliant

When README.md does exist.

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

  <ItemGroup>
    <None Include="README.md" />
  </ItemGroup>

</Project>