Skip to content

Commit

Permalink
Add static usings to allow unprefixed ThrowXxxx
Browse files Browse the repository at this point in the history
  • Loading branch information
kzu authored Apr 4, 2024
1 parent 97ebd18 commit 6dfe21f
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,12 @@
<ProjectProperty Include="PublicKeyToken" />
</ItemGroup>

<ItemGroup Label="Throw">
<Using Include="System.ArgumentException" Static="true" />
<Using Include="System.ArgumentOutOfRangeException" Static="true" />
<Using Include="System.ArgumentNullException" Static="true" />
</ItemGroup>

<Import Project="Directory.props" Condition="Exists('Directory.props')"/>
<Import Project="Directory.props.user" Condition="Exists('Directory.props.user')" />
</Project>

0 comments on commit 6dfe21f

Please sign in to comment.