https://github.com/powercommands/powercommands-tutorials
Tutorials describing what you can do with Power Commands and how you do it.
https://github.com/powercommands/powercommands-tutorials
Last synced: about 1 year ago
JSON representation
Tutorials describing what you can do with Power Commands and how you do it.
- Host: GitHub
- URL: https://github.com/powercommands/powercommands-tutorials
- Owner: PowerCommands
- License: mit
- Created: 2023-01-07T16:21:40.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2023-05-06T09:30:15.000Z (about 3 years ago)
- Last Synced: 2025-02-06T07:21:13.566Z (over 1 year ago)
- Language: C#
- Size: 11.2 MB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[Follow progress on twitter](https://twitter.com/PowerCommands) 
# PowerCommands-Tutorials
## Preparations
Setup the VS Template to create new Solution for your PowerCommands project.
- Download the template [Visual Studio project template](https://github.com/PowerCommands/PowerCommands2022/tree/main/Templates)
- Copy the .zip file into the user project template directory. By default, this directory is %USERPROFILE%\Documents\Visual Studio \Templates\ProjectTemplates.
- Open Visual Studio and write Power in the searchbox, you should find the PowerCommand template.

## Tutorials
[The basics](/Tutorials/the-basics.md)
This tutorial will guide you trough the process of the creation of and the design of a PowerCommands solution. We will creating a small and simple project that has only one Command that are compressing file from a given directory to a zip file. After this you will understand the core principles and the power of PowerCommands.
[Files and directories part I - understand working directory and navigation](/Tutorials/file-handling.md)
In this tutorial we go trough how to handle directories and how we can run the **async** method instead of the default run method.
[Files and directories part II - use custom configuration](/Tutorials/file-handling2.md)
We extend the tutorial from part I and look at how to add your custom configuration and use it in your Command class.
[Setup a project that uses Microsoft Azure CognitiveServices](/Tutorials/cognitive-services.md)
This example requires a Microsoft Azure account, no credits needed though the image recognition service is free to try out in a small scale. In this tutorial you will see how you can use environment variables in your **Command** class.