Skip to content

Latest commit

 

History

History
31 lines (24 loc) · 705 Bytes

File metadata and controls

31 lines (24 loc) · 705 Bytes
parent ancestor
General
MSBuild

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>