Topshelf - Topshelf namespace type or name not found

I'm trying to play with Topshelf to host a console application as a Windows service, but I'm having problems ...

I 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 mentioned in the header is displayed, and then my Topshelf link becomes invalid (and log4net too).

I feel like I'm missing something obvious - any suggestions will be appreciated.

+5
source share
2 answers

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

+11
source

you can use nuget to set the top of your project

TopShelf Install

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

0
source

All Articles