Release
• 1 minute read

Code scanning adds support for C# 11 / .NET 7

Summary

GitHub Code Scanning now supports scanning projects built with C#11 / .NET 7 and leveraging the latest language features. These features include: Generic attributes Generic math support Numeric IntPtr and…

GitHub Code Scanning now supports scanning projects built with C#11 / .NET 7 and leveraging the latest language features.

These features include:

  • Generic attributes
  • Generic math support
  • Numeric IntPtr and UIntPtr
  • Newlines in string interpolations
  • List patterns
  • Improved method group conversion to delegate
  • Raw string liters
  • Auto-default struct
  • Pattern match Span or ReadOnlySpan on a constant string
  • Extended nameof scope
  • UTF-8 string literals
  • Required members
  • ref fields and ref scoped variables
  • File scoped types

C# 11 / .NET 7 support is available by default in GitHub.com code scanning, the CodeQL CLI, and the CodeQL extension for VS Code.

New Releases

Improvements

Deprecations

Back to top