Skip to content
This repository was archived by the owner on Jun 13, 2024. It is now read-only.

Properties of AdditionalMetadata are case-sensitive #7

Closed
juneb opened this issue Oct 6, 2016 · 1 comment
Closed

Properties of AdditionalMetadata are case-sensitive #7

juneb opened this issue Oct 6, 2016 · 1 comment

Comments

@juneb
Copy link
Contributor

juneb commented Oct 6, 2016

The Microsoft.PowerShell.Commands.PSRepositoryItemInfo has an AdditionalMetadata property that contains a hash table of properties and values. The hash table keys are case sensitive.

PS C:\Program Files\PowerShell\6.0.0.10> (find-module pester).additionalMetadata.downloadCount
21670
PS C:\Program Files\PowerShell\6.0.0.10> (find-module pester).Additionalmetadata.DOWNloadcount
PS C:\Program Files\PowerShell\6.0.0.10>

PS C:\Program Files\PowerShell\6.0.0.10> (get-installedmodule pscx).additionalMetadata.published
6/30/2016 4:18:25 AM
PS C:\Program Files\PowerShell\6.0.0.10> (get-installedmodule pscx).additionalMetadata.PUBLISHED
PS C:\Program Files\PowerShell\6.0.0.10>

I think this is because the source is XML, which is case-sensitive, but I haven't had time to verify.

@kilasuit
Copy link

kilasuit commented Oct 6, 2016

Root cause is likely due to this issue that was raised in PoshCode StyleGuide repo PoshCode/PowerShellPracticeAndStyle#60

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants