runtime: Installer-related classes missing
ServiceController was added to corefx, but many framework classes are lacking. With the deprecation of .NET Framework, I’ve been looking at Portability Analyzer and one of our significant issues is installer-related. We have a custom base service DLL we use in all of our services that handle installation of various things (event log sources, the assemblies themselves, service registration, etc) as well as uninstallation.
It uses the following classes which are missing. I haven’t been able to find them in compat packs, NuGet, or corefx. Also, even looking for ServiceProcessInstaller, it doesn’t appear to be in the reference source. Its signature is there, like an interface, but not the implementation.
Can anyone provide guidance on replacing the following classes missing from .NET Core/5?
- System.Diagnostics.EventLogInstaller
- System.Configuration.Install.InstallContext
- System.ServiceProcess.ServiceInstaller
- System.Configuration.Install.Installer
- System.ServiceProcess.ServiceProcessInstaller
- System.Configuration.Install.InstallerCollection
- System.Configuration.Install.TransactedInstaller
- System.Configuration.Install.InstallException
- System.ServiceProcess.ServiceAccount
- System.Configuration.Install.UninstallAction
The examples with Windows Services they now support have shown MS staff using sc to create the services manually (presumably xcopying the binaries manually too). This seems weird since there was built in support for registering services before and Core now officially supports services. Why are these classes still missing?
About this issue
- Original URL
- State: closed
- Created 5 years ago
- Reactions: 6
- Comments: 25 (10 by maintainers)
Shouldn’t the ServiceInstaller & ServiceProcessInstaller classes be part of the System.Windows.Compatibility packages on top of the net5/net6 runtime?
OK. LMK if you need anything else.