dfinke / PowerShellHumanizer

PowerShell Humanizer wraps Humanizer: meets all your .NET needs for manipulating and displaying strings, enums, dates, times, timespans, numbers and quantities
Apache License 2.0
120 stars 18 forks source link

Update-TypeData : Error in TypeData "System.String": The member ToQuantity is already present #2

Closed dfinke closed 10 years ago

dfinke commented 10 years ago
ipmo PowerShellHumanizer -Force

Update-TypeData : Error in TypeData "System.String": The member ToQuantity is already present.
At C:\Users\Douglas\Documents\WindowsPowerShell\Modules\PowerShellHumanizer\PowerShellHumanizer.psm1:63 char:5
+     Update-TypeData -TypeName System.String `
+     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation: (:) [Update-TypeData], RuntimeException
    + FullyQualifiedErrorId : TypesDynamicUpdateException,Microsoft.PowerShell.Commands.UpdateTypeDataCommand
cdhunt commented 10 years ago

Yea, not sure how I'd prefer to handle that. Get-TypeData and ignore updating members of the same name or try and replace it with the definition in the module.

dfinke commented 10 years ago

Hmm, yeah, Maybe for now do a -Force. Then think through a better approach?