Skip to content

Commit

Permalink
Use recommended Compiler options
Browse files Browse the repository at this point in the history
- Features: Strict
  Setting this ensures that we won't fall into compiler bugs when using latest features.

- LangVersion: Latest
  Setting this ensures that we always compile against latest version against the using SDK.
  • Loading branch information
Nirmal4G committed Jan 17, 2023
1 parent a09e743 commit 3bdae22
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion eng/Toolkit.Common.props
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,9 @@
</PropertyGroup>

<PropertyGroup Label="Compile">
<Features>Strict</Features>
<Nullable>Enable</Nullable>
<LangVersion>11.0</LangVersion>
<LangVersion>Latest</LangVersion>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
</PropertyGroup>

Expand Down

0 comments on commit 3bdae22

Please sign in to comment.