PowerShell

Read 3 posts from PowerShell

Posts

  • Setting Environment Variables in Developer PowerShell in Visual Studio

    While writing UI automated test scenarios using Gherkin SpecFlow framework and C# Steps, I needed to set an environment variable to run a single test case from the command line. In the Windows Command Prompt, I would set the environment variable like this: For example: Then, I would run the test scenario using: However, setting…

  • Code sign using PowerShell

    Code signing is important before releasing our software to the client. In the previous post, we use a PowerShell script to publish our code. After publishing the code, we need to sign the code before release. We must have code cert for signing. Install the code sign in your machine. Certificate installs process is simple…

  • .Net Publish Using PowerShell

    Sometimes we want to publish project using PowerShell rather then using Visual Studio Publish feature. I wanted to published all projects of the solutions in one folder. Below PowerShell command will published our projects in __DEPLOY__ folder as an example. Save this code as PowerShell script with extension of ps1. Run this script from VS,…