Skip to content

Commit

Permalink
Making sure that we're compiling with the dotnet 8 sdk, until I decid…
Browse files Browse the repository at this point in the history
…e to upgrade to a newer version. dotnet 9 throws a bunch of weird compiler warnings about formatting which weren't thrown before. Like recommending against using 'var', which is nonsense.
  • Loading branch information
tpill90 committed Nov 23, 2024
1 parent 3191d51 commit 724b89f
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,10 @@ dotnet_diagnostic.cs1998.severity = error
# CS4014: Because this call is not awaited, execution of the current method continues before the call is completed
dotnet_diagnostic.cs4014.severity = error

# IDE0008 - Use explicit type instead of 'var'
# - No idea why it is now recommending you to not use var anymore. So disabling it.
dotnet_diagnostic.IDE0008.severity = none

# IDE0028: Simplify collection initialization
# - Not a fan of the syntax, feels a little bit too terse
dotnet_style_prefer_collection_expression = false
Expand Down
7 changes: 7 additions & 0 deletions global.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"$schema": "http://json.schemastore.org/global",
"sdk": {
"version": "8.0.100",
"rollForward": "latestMinor"
}
}

0 comments on commit 724b89f

Please sign in to comment.