-
-
Notifications
You must be signed in to change notification settings - Fork 144
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Centralize C# language version in shared .props
- Loading branch information
1 parent
6c07620
commit ccbc5ef
Showing
5 changed files
with
30 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
<Project> | ||
<PropertyGroup> | ||
<LangVersion>11.0</LangVersion> | ||
|
||
<!-- | ||
Enable the latest warning wave, which shows additional warnings for invalid language features that are disabled by default. | ||
For additional info, see https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/compiler-messages/warning-waves. | ||
--> | ||
<AnalysisLevel>7</AnalysisLevel> | ||
|
||
<!-- Import the global configs from the CodeStyle package (enables all IDExxxx warnings)--> | ||
<AnalysisLevelStyle>7-all</AnalysisLevelStyle> | ||
|
||
<!-- | ||
Enable the compiler strict mode (see https://www.meziantou.net/csharp-compiler-strict-mode.htm). | ||
This (poorly documented) mode enables additional warnings for incorrect usages of some features. | ||
For instance, this will warn when using the == operator to compare a struct with a null literal. | ||
--> | ||
<Features>strict</Features> | ||
</PropertyGroup> | ||
</Project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters