CliRunner.Extensions
1.0.0-preview.3
dotnet add package CliRunner.Extensions --version 1.0.0-preview.3
NuGet\Install-Package CliRunner.Extensions -Version 1.0.0-preview.3
<PackageReference Include="CliRunner.Extensions" Version="1.0.0-preview.3" />
paket add CliRunner.Extensions --version 1.0.0-preview.3
#r "nuget: CliRunner.Extensions, 1.0.0-preview.3"
// Install CliRunner.Extensions as a Cake Addin #addin nuget:?package=CliRunner.Extensions&version=1.0.0-preview.3&prerelease // Install CliRunner.Extensions as a Cake Tool #tool nuget:?package=CliRunner.Extensions&version=1.0.0-preview.3&prerelease
CliRunner.Extensions.
This readme covers the CliRunner.Extensions package. Looking for the CliRunner Readme?
This package adds:
- extension methods that enable better interoperability between CliRunner and existing .NET types
- the
AddCliRunner
Dependency Injection extension method to enable easy CliRunner setup when using the Microsoft.Extensions.DependencyInjection package
Usage
DependencyInjecton
CliRunner.Extensions provides an extension method to make it easier to use CliRunner with Microsoft.Extensions.DependencyInjection.
The AddCliRunner
IServiceCollection extension method adds CliRunner's and ProcessExtensions' interface-able services.
The services injected includes:
IFilePathResolver
ICommandRunner
IProcessPipeHandler
IProcessCreator
IPipedProcessRunner
IProcessRunner
IProcessRunnerUtility
Why a separate package?
There's a few different reasons:
- Provides extension methods in a
- Not everybody necessarily uses Microsoft's Dependency Injection packages.
- Helps de-couple the Dependency Injection extension functionality from the main library
Licensing
CliRunner.Extensions.DependencyInjection is licensed under the MPL 2.0 license. If you modify any of the package's files then the modified files must be licensed under the MPL 2.0 .
If you use this package in your project please make an exact copy of the contents of the LICENSE.txt file available either in your third party licenses txt file or as a separate txt file.
Assets
CliRunner's Icon is NOT licensed under the MPL 2.0 license and are licensed under Copyright with all rights reserved to me (Alastair Lundy).
If you fork CliRunner and re-distribute it, please replace the usage of the icon unless you have prior written agreements from me.
Acknowledgements
This project would like to thank the following projects for their work:
- Microsoft.Extensions.DependencyInjection.Abstractions for providing Dependency Injection Abstractions for .NET .
For more information, please see the THIRD_PARTY_NOTICES file.
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net5.0 was computed. net5.0-windows was computed. net6.0 was computed. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 is compatible. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. |
.NET Core | netcoreapp2.0 was computed. netcoreapp2.1 was computed. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
.NET Standard | netstandard2.0 is compatible. netstandard2.1 is compatible. |
.NET Framework | net461 was computed. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
MonoAndroid | monoandroid was computed. |
MonoMac | monomac was computed. |
MonoTouch | monotouch was computed. |
Tizen | tizen40 was computed. tizen60 was computed. |
Xamarin.iOS | xamarinios was computed. |
Xamarin.Mac | xamarinmac was computed. |
Xamarin.TVOS | xamarintvos was computed. |
Xamarin.WatchOS | xamarinwatchos was computed. |
-
.NETStandard 2.0
- AlastairLundy.Extensions.Processes (>= 1.1.0 && < 2.0.0)
- CliRunner (>= 1.0.0-beta.3)
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 9.0.2 && < 10.0.0)
- PolyFill (>= 7.17.0 && < 8.0.0)
-
.NETStandard 2.1
- AlastairLundy.Extensions.Processes (>= 1.1.0 && < 2.0.0)
- CliRunner (>= 1.0.0-beta.3)
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 9.0.2 && < 10.0.0)
- PolyFill (>= 7.17.0 && < 8.0.0)
-
net8.0
- AlastairLundy.Extensions.Processes (>= 1.1.0 && < 2.0.0)
- CliRunner (>= 1.0.0-beta.3)
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 9.0.2 && < 10.0.0)
-
net9.0
- AlastairLundy.Extensions.Processes (>= 1.1.0 && < 2.0.0)
- CliRunner (>= 1.0.0-beta.3)
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 9.0.2 && < 10.0.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated |
---|---|---|
1.0.0-preview.3 | 42 | 2/20/2025 |
Updated code to support CliRunner 1.0.0 Beta 3