July 2010 - Posts

26
Comments

Taming the VSX beast from PowerShell by svdoever

Using VSX from PowerShell is not always a pleasant experience. Most stuff in VSX is still good old COM the System.__ComObject types are flying around. Everything can be casted to everything (for example EnvDTE to EnvDTE2) if you are in C#, but PowerShell...

Comments

Powershell: Finding items in a Visual Studio project by svdoever

In the Macaw Solutions Factory we execute a lot of PowerShell code in the context of Visual Studio, meaning that we can access the Visual Studio object model directly from our PowerShell code. There is a great add-in for Visual Studio that provides you...

Comments

PowerShell internal functions by svdoever

Working with PowerShell for years already, never knew that this would work! Internal functions in PowerShell (they probably have a better name): function x {     function y     {        ...
Filed under:
9
Comments

Returning an exit code from a PowerShell script by svdoever

Returning an exit code from a PowerShell script seems easy… but it isn’t that obvious. In this blog post I will show you an approach that works for PowerShell scripts that can be called from both PowerShell and batch scripts, where the command to be executed...
Filed under: ,
More Posts