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());
		}
	}
}
