Skip to content

Commit

Permalink
style: target c# 13 langversion
Browse files Browse the repository at this point in the history
  • Loading branch information
oliverbooth committed Nov 13, 2024
1 parent bd546e6 commit 8c2b5f3
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ or submit a pull request.

### Pull request guidelines

This project uses C# 12.0 language features where feasible, and adheres to StyleCop rules with some minor adjustments.
This project uses C# 13.0 language features where feasible, and adheres to StyleCop rules with some minor adjustments.
There is an `.editorconfig` included in this repository. For quick and painless pull requests, ensure that the analyzer does not
throw warnings.

Expand All @@ -17,7 +17,7 @@ convetional commits specification.

Below are a few pointers to which you may refer, but keep in mind this is not an exhaustive list:

- Use C# 12.0 features where possible
- Use C# 13.0 features where possible
- Try to ensure code is CLS-compliant. Where this is not possible, decorate methods with `CLSCompliantAttribute` and pass `false`
- Follow all .NET guidelines and coding conventions.
See https://docs.microsoft.com/en-us/dotnet/csharp/fundamentals/coding-style/coding-conventions
Expand Down
2 changes: 1 addition & 1 deletion Directory.Build.props
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<Project>
<PropertyGroup>
<LangVersion>12.0</LangVersion>
<LangVersion>13.0</LangVersion>
<Optimize>true</Optimize>
<ImplicitUsings>true</ImplicitUsings>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
Expand Down
2 changes: 1 addition & 1 deletion tools/Directory.Build.props
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<Project>
<PropertyGroup>
<LangVersion>11.0</LangVersion>
<LangVersion>13.0</LangVersion>
<Nullable>enable</Nullable>
<ImplicitUsings>true</ImplicitUsings>
<ExcludeFromCodeCoverage>true</ExcludeFromCodeCoverage>
Expand Down

0 comments on commit 8c2b5f3

Please sign in to comment.