frends-community - Frends.Community.PowerShell 1.1.0

The PowerShell Tasks require PowerShell 5.0 to work

PM> Install-Package Frends.Community.PowerShell -Version 1.1.0 -Source https://www.myget.org/F/frends-community/api/v3/index.json

Copy to clipboard

> nuget.exe install Frends.Community.PowerShell -Version 1.1.0 -Source https://www.myget.org/F/frends-community/api/v3/index.json

Copy to clipboard

> dotnet add package Frends.Community.PowerShell --version 1.1.0 --source https://www.myget.org/F/frends-community/api/v3/index.json

Copy to clipboard
<PackageReference Include="Frends.Community.PowerShell" Version="1.1.0" />
Copy to clipboard
source https://www.myget.org/F/frends-community/api/v3/index.json

nuget Frends.Community.PowerShell  ~> 1.1.0
Copy to clipboard

> choco install Frends.Community.PowerShell --version 1.1.0 --source https://www.myget.org/F/frends-community/api/v2

Copy to clipboard
Import-Module PowerShellGet
Register-PSRepository -Name "frends-community" -SourceLocation "https://www.myget.org/F/frends-community/api/v2"
Install-Module -Name "Frends.Community.PowerShell" -RequiredVersion "1.1.0" -Repository "frends-community" 
Copy to clipboard

Browse the sources in this package using Visual Studio or WinDbg by configuring the following legacy symbol server URL: https://www.myget.org/F/frends-community/symbols/


Frends.Community.PowerShell

Actions Status MyGet License: MIT

Installing

You can install the task via FRENDS UI Task View or you can find the NuGet package from the following NuGet feed https://www.myget.org/F/frends-community/api/v3/index.json and in Gallery view in MyGet https://www.myget.org/feed/frends-community/package/nuget/Frends.Community.PowerShell

Tasks

PowerShell.RunCommand

Execute a single PowerShell command with parameters, the Task fails when a terminating error is encountered or an error is thrown

Input

Property Type Description Example
Command string The PowerShell command to execute New-TimeSpan
Parameters Array{Name: string, Value: object} Parameters for the command, provided switch parameters need to have a boolean value Name = Hours, Value = 1
LogInformationStream bool Whether information stream should be logged or not 'false'

Result

Property Type Description Example
Result Array
Errors Array
Log string

PowerShell.RunScript

Run a PowerShell script with parameters, the Task fails when a terminating error is encountered or an error is thrown

Input

Property Type Description Example
ReadFromFile bool Should the script be read from a file or from the Script parameter true
ScriptFilePath string Location for the script file F:\myScript.ps1
Script string The script to execute New-TimeSpan -Hours 1 \| convertto-json
Parameters Array{Name: string, Value: object} Parameters for the script, provided switch parameters need to have a boolean value Name = Hours, Value = 1
LogInformationStream bool Whether information stream should be logged or not 'false'

Result

Property Type Description Example
Result Array
Errors Array
Log string

Building

Clone a copy of the repo

git clone https://github.com/CommunityHiQ/Frends.Community.PowerShell.git

Rebuild the project

dotnet build

Run Tests

dotnet test

Create a NuGet package

dotnet pack --configuration Release

Contributing

When contributing to this repository, please first discuss the change you wish to make via issue, email, or any other method with the owners of this repository before making a change.

  1. Fork the repo on GitHub
  2. Clone the project to your own machine
  3. Commit changes to your own branch
  4. Push your work back up to your fork
  5. Submit a Pull request so that we can review your changes

NOTE: Be sure to merge the latest from "upstream" before making a pull request!

Change Log

Version Changes
1.0.0 First version
1.1.0 Multi-framework and Github actions support
1.2.0 Option to turn information stream logging on or off
1.3.0 Updated dependencies: Microsoft.CSharp to 4.7.0, PowerShellStandard.Library to 5.1.1, System.ComponentModel.Annotations to 5.0.0
  • .NETFramework 4.7.1
    • Microsoft.CSharp (>= 4.5.0)
    • PowerShellStandard.Library (>= 5.1.0)
    • System.ComponentModel.Annotations (>= 4.7.0)
  • .NETStandard 2.0
    • Microsoft.CSharp (>= 4.5.0)
    • PowerShellStandard.Library (>= 5.1.0)
    • System.ComponentModel.Annotations (>= 4.7.0)
  • .NETFramework 4.7.1: 4.7.1.0
  • .NETStandard 2.0: 2.0.0.0

                        
Assembly Assembly hash Match
/lib/net471/frends.community.powershell.dll 237bb4421ae941e68f12b90a18592f4aFFFFFFFF
/lib/netstandard2.0/frends.community.powershell.dll fddf41e0a36949bba6a6a39b154e922aFFFFFFFF

Owners

FRENDS Community Feed User

Authors

HiQ Finland

Project URL

https://github.com/CommunityHiQ/Frends.Community.PowerShell

License

Unknown

Tags

Frends

Info

417 total downloads
75 downloads for version 1.1.0
Download (18.35 KB)
Download legacy symbols (27.8 KB)
Found on the current feed only

Package history

Version Size Last updated Downloads Mirrored?
1.3.0 19.03 KB Mon, 10 Feb 2025 09:12:24 GMT 64
1.2.0 18.76 KB Mon, 01 Nov 2021 07:03:45 GMT 206
1.1.0 18.35 KB Tue, 04 Aug 2020 09:48:13 GMT 75
1.0.2 9.78 KB Thu, 22 Aug 2019 11:52:44 GMT 52
1.0.0 9.78 KB Thu, 22 Aug 2019 11:31:47 GMT 20