Topshelf debugging application debugging in VS2010

I am trying to use the Topshelf application for hosting Topshelf.Host.exe to run my .NET class library as a Windows service. http://topshelf-project.com/documentation/shelving/

I am having trouble connecting a debugger inside VS2010. Here is what I installed

  • Topshelf.Host.exe in c: \ projects
  • building a classlibrary service for c: \ projects \ Services \ library-name \
  • Topshelf.Host.exe works as an external class library application for debugging

With the launch of F5 / Topshelf.Host.exe starts, but it does not seem to pick up and load my class. Any ideas or best ways to install debugging?

+3
source share
1 answer

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

Edit: Topshelf.Host is no longer supported and is not supported.

0
source

Source: https://habr.com/ru/post/898321/


All Articles