我可以使用没有.net框架的Nancy来托管Windows服务吗? [英] Can I host windows service using Nancy without .net framework?

查看:51
本文介绍了我可以使用没有.net框架的Nancy来托管Windows服务吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


我可以使用没有.net框架的Nancy托管Windows服务吗?


Can I host windows service using Nancy without .net framework?

我找不到足够的资源。基本上我正在为我项目中的所有库使用.net core 2.1和.net标准。我想将它作为windows服务和主机页面安装在localhost上进行
浏览。基本上尝试使用Nancy实现以下结果

I am not finding enough resources. Basically I am using .net core 2.1 and .net standard for all the libraries in my project. I want to install it as windows service and host pages at localhost for browsing. Basically trying to achieve below result using Nancy

https://docs.microsoft.com/en-us/aspnet/core/host-and-deploy/windows-service?view=aspnetcore-2.1

非常感谢Deepak

Many Thanks Deepak

推荐答案

问题:你提到你了使用.NET Core 2.1,但你不想在没有.NET框架的情况下运行EXE。 这是否有意义?

Question: You mention you're using .NET Core 2.1, but you don't want to run the EXE without .NET framework. Does that even make sense?

顺便说一下,如果你只想写一个Windows服务托管Nancy,只需用
编写应用程序
他们的指南
然后按照您找到的链接中的步骤将其转换为Windows服务。

Btw, if you just want to write a Windows service hosting Nancy, just write application with their guide then follow the steps in the link you found to convert it to Windows service.


这篇关于我可以使用没有.net框架的Nancy来托管Windows服务吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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