Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Using obfuscated library from PowerShell #171
First of all - I'm new to Obfuscar and I like it very much! Thanks a lot for providing this tool.
I only have one problem. When I obfuscate a library, I cannot use it from PowerShell:
I get this exception:
MyType is intentionally not obfuscated.
However, when I use this setting, everything works just fine:
I'd like to hide strings. Is there some way I can hide them and still be able to consume the library from PowerShell?
Thanks a lot for any advice,
By debugging the PowerShell console itself, I can see that PowerShell runtime has difficulty in finding the proper types from an obfuscated assembly.
The initial exception is in fact showing out-of-memory,
and the call stack was,
This exception was handled internally and later led to the following exception,
That's why the error message is misleading.
I think this is something PowerShell engine should improve, but of course that won't come easily.
Like you discovered, disable string hiding can help.
Close it now as nothing to be done on Obfuscar.