| 123456789101112131415161718192021222324252627 |
- using System;
- using System.Linq;
- using System.Reflection;
- namespace PRSDesktop.Utils;
- public static class RoslynUtils
- {
-
- public static void DumpRoslynPadVersions()
- {
- // You can add more types you know you reference from RoslynPad assemblies.
- var _assemblies = new[]
- {
- typeof(RoslynPad.Editor.RoslynCodeEditor).Assembly,
- typeof(RoslynPad.Roslyn.RoslynHost).Assembly,
- };
- foreach (var _asm in _assemblies.Distinct())
- {
- var _name = _asm.GetName();
- var _info = _asm.GetCustomAttribute<AssemblyInformationalVersionAttribute>()?.InformationalVersion;
- Console.WriteLine($@"{_name.Name} AssemblyVersion={_name.Version} InformationalVersion={_info}");
- }
- }
- }
|