Tuesday, February 24, 2015

PowerShell

PowerShell is a command line administration tool that comes with Windows.  I haven't used it much as a developer, but I have discovered a few little things that make me think it could be useful for discovering what certain .NET objects are capable of without compiling new code.

Check this out:


I created a variable called MyString, and then tested out the SubString function.

Then I wanted to see how the GeneratePassword method of the Membership class worked, so I imported the assembly that contains the Membership class, and called GeneratePassword.

I can see this being useful because I can call .NET code on the fly without first creating a project in Visual Studio.

No comments:

Post a Comment