System.Utility.Commons.Core.ServiceBaseController.dll
1.0.0.5
Requires NuGet 2.0 or higher.
dotnet add package System.Utility.Commons.Core.ServiceBaseController.dll --version 1.0.0.5
NuGet\Install-Package System.Utility.Commons.Core.ServiceBaseController.dll -Version 1.0.0.5
<PackageReference Include="System.Utility.Commons.Core.ServiceBaseController.dll" Version="1.0.0.5"> <PrivateAssets>all</PrivateAssets> <IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets> </PackageReference>
paket add System.Utility.Commons.Core.ServiceBaseController.dll --version 1.0.0.5
#r "nuget: System.Utility.Commons.Core.ServiceBaseController.dll, 1.0.0.5"
// Install System.Utility.Commons.Core.ServiceBaseController.dll as a Cake Addin #addin nuget:?package=System.Utility.Commons.Core.ServiceBaseController.dll&version=1.0.0.5 // Install System.Utility.Commons.Core.ServiceBaseController.dll as a Cake Tool #tool nuget:?package=System.Utility.Commons.Core.ServiceBaseController.dll&version=1.0.0.5
win 服务集成组件代码如下:
/// <summary>
/// 应用程序的主入口点。
/// </summary>
[RunInstaller(true)]
public class Program : System.Utility.Commons.Core.ServiceBaseInstaller
{
public static void Main(string[] args)
{
using (Program setting = new Program())
{
setting.RunService<Service1>(args);
}
}
}
//下面是配置文件中的设置
<appSettings>
<!--本服务的名称-->
<add key="InstallerServiceName" value="WinServices.ServiceTest" />
<!--本服务的显示名称-->
<add key="InstallerDisplayName" value="WinServices.ServiceTest" />
</appSettings>
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET Framework | net40 is compatible. net403 was computed. net45 was computed. net451 was computed. net452 was computed. net46 was computed. net461 was computed. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
-
- System.Utility.Commons.Core.Log.dll (>= 1.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.