Skip to content

Conversation

egil
Copy link
Contributor

@egil egil commented Nov 16, 2021

This includes a bunch of tweaks and improvements made available with C# 10.

  • File scoped name scoped name sapces
  • Global usings enabled
  • Default usings included for test projects
  • Upgrade to analyzers
  • Removes the redundant Microsoft.CodeAnalysis.NetAnalyzers analyzer as this is now build into the SDK.

To automatically format an entire solution to use file scoped namespaces, just apply these changes, and run dotnet format style from the command line.

More info here: https://ardalis.com/dotnet-format-and-file-scoped-namespaces/

@egil egil changed the title Upgrade to C# 10, with file scoped namespaces as the default Upgrade to C# 10, file scoped namespaces, global usings Nov 16, 2021
@egil egil requested a review from cjakobsen November 16, 2021 13:58
@egil egil merged commit a38c499 into main Nov 23, 2021
@egil egil deleted the csharp-10-filescoped branch November 23, 2021 12:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants