FriedrichWeinmann / FileType

Module to validate filetypes
MIT License
6 stars 2 forks source link

Fails consistently, even in Windows PowerShell 5.1 #3

Closed sba923 closed 4 years ago

sba923 commented 4 years ago

All I get is:

PS 5.1.18362.145 C:/Users/steph> gci .\OneDrive\Documents\WUTroubleShooterReport201804101205.pdf | Resolve-FileType

New-Object : The value supplied is not valid, or the property is read-only. Change the value, and then   try again.
At C:\Program Files\WindowsPowerShell\Modules\FileType\1.0.0\FileType.psm1:234 char:5
+                 New-Object FileType.Resolution -Property @{                                            
+                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~                                                
+ CategoryInfo          : InvalidData: (:) [New-Object], Exception                                       
+ FullyQualifiedErrorId : SetValueException,Microsoft.PowerShell.Commands.NewObjectCommand           
FriedrichWeinmann commented 4 years ago

Resolved in v1.0.1 Was a problem when not resolving any FileType at all