开发者

Topshelf - Type or namespace name Topshelf cannot be found

开发者 https://www.devze.com 2023-03-01 23:11 出处:网络
I am attempting to play with Topshelf to host a Console application as a Windows Service, but I am running into problems...

I am attempting to play with Topshelf to host a Console application as a Windows Service, but I am running into problems...

I have referenced the Topshelf dll, along with the log4net dll from my Console application. However, when I compile - either with or without code that references Topshelf, the build error 开发者_如何学JAVAmentioned in the title is displayed, and then my Topshelf reference becomes invalidated (and log4net too).

I feel like I am missing something obvious - any suggestions would be appreciated.


Change the project to target .NET 4.0 instead of .NET 4.0 Client Profile. Topshelf references System.Web for the inprocess dashboard.


you can use Nuget for install topshelf on your project

TopShelf Install

on VisualStudio go to Tools/Nuget Pakage Manager/Pakage manager Console

0

精彩评论

暂无评论...
验证码 换一张
取 消