> For the complete documentation index, see [llms.txt](https://til.cazzulino.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://til.cazzulino.com/dotnet/quickly-check-c-compiler-and-language-version.md).

# Quickly check C# compiler and language version

Just add `#error version` anywhere in a C# file and you'll see a tooltip with the information:

![](https://804009323-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M5W22ESTtVWB8uBjgpA%2Fuploads%2Fgit-blob-4392ab089121f039629bcb85a316b7d1a197ea9c%2Fcompilerversion.png?alt=media\&token=8fcaac10-4e35-41b7-9ef4-79d457c79933)
