Print compiler version in diagnostics when certain code is compiled #17859
Labels
Area-Compilers
Feature Request
Resolution-Fixed
The bug has been fixed and/or the requested behavior has been implemented
Milestone
It would be useful to troubleshooting purpose to have the equivalent of
phpversion()
for C# and VB.It could be a special pragma (
#VERSION
), a well-known method without implementation (System.Runtime.CompilerServices.RuntimeHelpers.Version()
?) or maybe a special doc tag.The output should not only include the version of the compiler, but also the language version that is used to compile the current code (this would be useful in asp.net scenario).
FYI @gafter @jaredpar
The text was updated successfully, but these errors were encountered: