frends-community - Frends.Community.PowerShell 1.2.0
The PowerShell Tasks require PowerShell 5.0 to work
PM> Install-Package Frends.Community.PowerShell -Version 1.2.0 -Source https://www.myget.org/F/frends-community/api/v3/index.json
> nuget.exe install Frends.Community.PowerShell -Version 1.2.0 -Source https://www.myget.org/F/frends-community/api/v3/index.json
> dotnet add package Frends.Community.PowerShell --version 1.2.0 --source https://www.myget.org/F/frends-community/api/v3/index.json
source https://www.myget.org/F/frends-community/api/v3/index.json
nuget Frends.Community.PowerShell ~> 1.2.0
Copy to clipboard
> choco install Frends.Community.PowerShell --version 1.2.0 --source https://www.myget.org/F/frends-community/api/v2
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.2.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
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.
- Fork the repo on GitHub
- Clone the project to your own machine
- Commit changes to your own branch
- Push your work back up to your fork
- 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/netstandard2.0/frends.community.powershell.dll | 879155b24f2040ebb37f075a4cba56d4FFFFFFFF | |
| /lib/net471/frends.community.powershell.dll | bb36cabc65a84624b0017c7e2cdfba91FFFFFFFF |
OwnersFRENDS Community Feed User |
AuthorsHiQ Finland |
Project URLhttps://github.com/CommunityHiQ/Frends.Community.PowerShell |
LicenseUnknown |
TagsFrends |
Info417 total downloads |
| 206 downloads for version 1.2.0 |
| Download (18.76 KB) |
| Download legacy symbols (35.49 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 |
|