One day our unit tests started failing on Linux. We run them in Docker. So I struggled to understand what was going on. All tests that run on Sqlite failed with bizarre error:
SQLite Error 8: ‘attempt to write…
Surprisingly it turned out to be not easy to do.
At first, looking at API one could guess that the right method to get version info on .NET is methods like RuntimeInformation.FrameworkDescription and Environment.Version.