I am creating a cmdlets module by inheriting the CustomPSSnapin class. I have created getter methods for properties like Name, Vendor and Descriptor. Now I want to add version info to this snapin module. How do I do this?
You can do this by creating a manifest for your PowerShell module.
Here is a Microsoft MSDN article explaining PowerShell modules manifests.
You will most likely use the New-ModuleManifest
cmdlet to generate your manifest. Use the -ModuleToProcess
switch to specify the .dll
file you built.