.NET project file analyzers community

Proj0017: Can’t create alias for static using directive

<Using> nodes can not be both marked as Static and be an Alias. For more info see.

Non-compliant

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

  <ItemGroup>
    <Using Include="NamespaceA.Type" Static="True" Alias="AType" />
  </ItemGroup>
  
</Project>

Compliant

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

  <ItemGroup>
    <Using Include="NamespaceA.Type" Alias="AType" />
  </ItemGroup>
  
</Project>