You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

17 lines
400 B

  1. using System;
  2. using System.Management.Automation;
  3. using ICSharpCode.Decompiler.TypeSystem;
  4. namespace ICSharpCode.Decompiler.PowerShell
  5. {
  6. [Cmdlet(VerbsCommon.Get, "DecompilerVersion")]
  7. [OutputType(typeof(string))]
  8. public class GetDecompilerVersion : PSCmdlet
  9. {
  10. protected override void ProcessRecord()
  11. {
  12. WriteObject(typeof(FullTypeName).Assembly.GetName().Version.ToString());
  13. }
  14. }
  15. }