r/PowerShell • u/splatteredbits • Jul 27 '26
News PureInvoke 2.0.0 Released
We've released PureInvoke 2.0.0!
We package and ship our code with their PowerShell module dependencies in the package. This way, we don't have to install our modules globally on all the servers we deploy our code to. This requires us to make extensive use of nested dependencies. We've gotten to the point that our dependencies are starting to use different versions of PureInvoke. Unfortunately, because it was using compiled assemblies, and .NET will only load assemblies with the same name once, we started to run into problems.
This release changes PureInvoke's compilation model. Instead of pre-compiling platform-specific assemblies, the module now uses Add-Type to compile P/Invoke C# code at runtime. This should improve cross-platform and cross-edition support. Since we've encountered problems with Add-Type in environments with aggressive anti-virus, PureInvoke re-tries failed compilations to improve resiliency.
We also added functions for querying Windows service configurations, e.g. Invoke-AdvApiQueryServiceConfig which wraps QueryServiceConfigW, Invoke-AdvApiQueryServiceConfig2, which wraps QueryServiceConfig2W, etc.:
Full release notes on GitHub.
View all comments
Show parent comment
2
u/sysiphean Jul 29 '26
Yup, which is more evidence than you've brought.
Oh, here's more evidence:
+22 : the score on u/psrobin's comment suggesting OP give context because this is nondescript
-5 : the score on your post telling people to just click the link
+9 : the score on the post as a whole
Base on the scores, people here definitely agree that:
If you think that it is on a person seeing a contextless post to go elsewhere and read up just determine why they should even want to learn more, rather than on the poster to give at least a hint of context, maybe the internet isn't for you.