简体   繁体   English

Topshelf Web部署

[英]Topshelf web deploy

Is it possible to deploy tepshelf windows service directly to the server? 是否可以将tepshelf Windows服务直接部署到服务器? I can't find anything about it. 我找不到任何东西。

Windows service is already installed on server I just need a way to update it automatically like I do web sites with web deploy. Windows服务已安装在服务器上,我只需要一种自动更新它的方法,就像我通过Web部署进行网站一样。

There is no way to deploy Topshelf services directly from Visual Studio like web deploy. 无法像Web部署那样直接从Visual Studio部署Topshelf服务。 It is easy enough to script -- just stop the service, xcopy files to the right unc path, then start the service. 编写脚本非常容易-只需停止服务,将xcopy文件复制到正确的unc路径,然后启动服务即可。 There are plenty of deployment tools to help out as well. 也有很多部署工具可以提供帮助。

Requires custom programming but you can use MSDeploy to deploy a Windows Service and it actually works really well. 需要自定义编程,但是您可以使用MSDeploy部署Windows Service,并且它确实运行良好。 We are using MSDeploy for all kinds of components as part of 50+ product pipelines. 我们将MSDeploy用于各种组件,作为50多个产品管道的一部分。

http://www.dotnetcatch.com/2016/03/18/deploy-non-web-apps-with-msdeploy/ http://www.dotnetcatch.com/2016/03/18/deploy-non-web-apps-with-msdeploy/

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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