cs-windows-service-toolkit
1.0.1
dotnet add package cs-windows-service-toolkit --version 1.0.1
NuGet\Install-Package cs-windows-service-toolkit -Version 1.0.1
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="cs-windows-service-toolkit" Version="1.0.1" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add cs-windows-service-toolkit --version 1.0.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: cs-windows-service-toolkit, 1.0.1"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install cs-windows-service-toolkit as a Cake Addin #addin nuget:?package=cs-windows-service-toolkit&version=1.0.1 // Install cs-windows-service-toolkit as a Cake Tool #tool nuget:?package=cs-windows-service-toolkit&version=1.0.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
cs-windows-service-toolkit
Toolkit that provides convenient methods for .NET application to easily integrate background windows services
Install
Install-Package cs-windows-service-toolkit
Usage
The sample code shows how to use this lib:
namespace WindowsServiceToolkit
{
class Program
{
static void Main(string[] args)
{
string serviceName = "notepad";
int timeoutMilliseconds = 1000;
WinServiceUtil.StartService(serviceName, timeoutMilliseconds);
WinServiceUtil.IsServiceInstalled(serviceName);
WinServiceUtil.StopService(serviceName, timeoutMilliseconds);
WinServiceUtil.RestartService(serviceName, timeoutMilliseconds);
}
}
}
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET Framework | net461 is compatible. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
This package has no dependencies.
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.1 | 1,182 | 4/30/2018 |
Windows Service Toolkit in .NET 4.6.1