简体   繁体   中英

Topshelf hosting application debugging in VS2010

I'm trying to use the Topshelf hosting application Topshelf.Host.exe to execute my .NET Class Library as a Windows service. http://topshelf-project.com/documentation/shelving/

I'm having trouble hooking up the debugger inside VS2010. Here's what I have setup

  • Topshelf.Host.exe at say c:\\projects
  • my classlibrary service building to c:\\projects\\Services\\library-name\\
  • running Topshelf.Host.exe as the class library's external application to debug with

With F5/run Topshelf.Host.exe is running, but it doesn't seem to pick up and load my class libary. Any ideas or better ways to set debugging up?

Have you checked your library-name.config in that folder to make sure the boostrapper is properly loaded? It should look like http://github.com/Topshelf/Topshelf/blob/master/src/Samples/StuffOnAShelf/clock.config

Edit: the Topshelf.Host is no longer supported or maintained.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM