【发布时间】:2008-11-05 11:54:00
【问题描述】:
我正在设计一个 Windows 服务并正在部署它。
我有代码:
ServiceInstaller serviceInstaller1 = new ServiceInstaller();
这会实例化对象(很明显,但会引发以下编译时错误:
错误 1 类型“System.Configuration.Install.ComponentInstaller”在未引用的程序集中定义。您必须添加对程序集“System.Configuration.Install, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a”的引用。 C:\Users\firstname.lastnameDocuments\Visual Studio 20
我该如何解决这个问题?我在想我的 Windows 服务中需要一个应用配置文件?
【问题讨论】:
标签: c# windows-services