在VS2010 Topshelf托管应用程序的调试 [英] Topshelf hosting application debugging in VS2010

查看:876
本文介绍了在VS2010 Topshelf托管应用程序的调试的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图用Topshelf宿主应用程序Topshelf.Host.exe执行我的.NET类库作为Windows服务。 http://topshelf-project.com/documentation/shelving/

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/

我无法钩住内VS2010调试器。
这里是我已经安装

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


  • Topshelf.Host.exe在说C:\projects

  • 我classlibrary服务楼到c:\projects\Services\library-name\

  • 运行Topshelf.Host.exe作为类库的外部应用程序与调试

通过F5 /运行Topshelf.Host.exe正在运行,但它似乎没有拿起并加载我的课libary。任何意见或更好的方法来设置调试了?

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?

推荐答案

你有没有该文件夹中检查你库名称.config确保该boostrapper是否正确装入?它应该看起来像 http://github.com/Topshelf /Topshelf/blob/master/src/Samples/StuffOnAShelf/clock.config

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

编辑:在Topshelf.Host不再支持或维持

the Topshelf.Host is no longer supported or maintained.

这篇关于在VS2010 Topshelf托管应用程序的调试的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆