Wednesday, October 24, 2012

WARNING: The generated type defines no public methods or properties

I received the following warning while using the Add-Type CmdLet in PowerShell:
WARNING: The generated type defines no public methods or properties.
Since I was aware that this was the case, I suppressed the warning using the following parameter to Add-Type:
Add-Type -WarningAction SilentlyContinue ...

0 comments:

Post a Comment