mirror of
https://github.com/icsharpcode/ILSpy.git
synced 2026-10-12 11:09:54 +00:00
18 lines
397 B
C#
18 lines
397 B
C#
using System;
|
|
using System.Management.Automation;
|
|
|
|
using ICSharpCode.Decompiler.TypeSystem;
|
|
|
|
namespace ICSharpCode.Decompiler.PowerShell
|
|
{
|
|
[Cmdlet(VerbsCommon.Get, "DecompilerVersion")]
|
|
[OutputType(typeof(string))]
|
|
public class GetDecompilerVersion : PSCmdlet
|
|
{
|
|
protected override void ProcessRecord()
|
|
{
|
|
WriteObject(typeof(FullTypeName).Assembly.GetName().Version.ToString());
|
|
}
|
|
}
|
|
}
|