Topshelf hosting application debugging in VS2010

孤人 提交于 2019-12-10 20:04:17

问题


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?


回答1:


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.



来源:https://stackoverflow.com/questions/3720985/topshelf-hosting-application-debugging-in-vs2010

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!