mirror of https://github.com/icsharpcode/ILSpy.git
16 lines
405 B
16 lines
405 B
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()); |
|
} |
|
} |
|
}
|
|
|