Visual Studio Windows 服务 c# exe 文件丢失 [英] Visual Studio Windows Service c# exe file missing

查看:72
本文介绍了Visual Studio Windows 服务 c# exe 文件丢失的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在另一台计算机上编写并安装了 Windows 服务,但在 Project/bin/debug 中找不到我的解决方案的 exe 文件.

I write and install windows services in another computer but I can't find exe file of my solution in Project/bin/debug.

这里我使用的安装方式:

here way of the install I used :

  • 为 Visual Studio 开发人员打开 cmd.
  • cd windows/microsoft.net/framework
  • install.exe 项目 exe 文件(我找不到)

推荐答案

如果您使用 Visual Studio 进行服务实现,请在 Visual Studio 中打开该解决方案,然后右键单击 Windows 服务项目并单击属性".

If you are using Visual Studio for your service implementation, open that solution in Visual Studio, and right click on the windows service project and click Properties.

在属性窗口中,选择右侧的 Build 选项卡,然后找到 Output 部分,它会告诉您 exe 的输出路径.

In the properties window, Select the Build tab on the right hand side, and then find the Output section which will tell you the output path of the exe.

这样你就可以定位到你的服务的 exe 文件所在的位置.

This way you con locate where the exe file of your service is.

要安装该服务,您无需在打开 Visual Studio 开发人员命令提示符时导航到 windows/microsoft.net/framework 位置.相反,导航到 project.exe 所在的文件夹,然后调用 install project.exe

To install the service, you do not have to navigate to windows/microsoft.net/framework location when you open visual studio developer command prompt. Instead, navigate to the folder where your project.exe resides and then call install project.exe

希望能帮到你

这篇关于Visual Studio Windows 服务 c# exe 文件丢失的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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