DevOps Articles

Curated articles, resources, tips and trends from the DevOps World.

PowerShell Pro Tip for Developers: Add Visual Studio Dev Mode Module to Pro

4 years ago medium.com
PowerShell Pro Tip for Developers: Add Visual Studio Dev Mode Module to Pro

Summary: This is a summary of an article originally published by the source. Read the full original article here →

The addition of the PowerShell Dev Mode to Visual Studio 2019 was a great thing for developers that do their own DevOps. Now we have a proper environment in PowerShell for automating MSBUILD and here’s a technique to make it available to be launched in your current session.

Each edition of PowerShell places its profile script in different places and hosts such as CS Code can define their own profile script when string up the session. To simplify access to the script, there is a build in variable named Profile that has the full path to the script for the current environment.

All of the code above is located in profile_aliases.ps1 and my $Profile script actually looks like this.

Made with pure grit © 2024 Jetpack Labs Inc. All rights reserved. www.jetpacklabs.com