简体   繁体   English

Visual Studio Windows 服务 c# exe 文件丢失

[英]Visual Studio Windows Service c# exe file missing

I write and install windows services in another computer but I can't find exe file of my solution in Project/bin/debug.我在另一台计算机上编写并安装了 Windows 服务,但在 Project/bin/debug 中找不到我的解决方案的 exe 文件。

here way of the install I used :这里我使用的安装方式:

  • open cmd for visual studio developers.为 Visual Studio 开发人员打开 cmd。
  • cd windows/microsoft.net/framework cd windows/microsoft.net/framework
  • install.exe project exe file (i can't find it) install.exe 项目exe文件(我找不到)

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.如果您使用 Visual Studio 进行服务实现,请在 Visual Studio 中打开该解决方案,然后右键单击 Windows 服务项目并单击属性。

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.在属性窗口中,选择右侧的 Build 选项卡,然后找到 Output 部分,它会告诉您 exe 的输出路径。

This way you con locate where the exe file of your service is.这样您就可以定位服务的 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.要安装该服务,您无需在打开 Visual Studio 开发人员命令提示符时导航到 windows/microsoft.net/framework 位置。 Instead, navigate to the folder where your project.exe resides and then call install project.exe相反,导航到 project.exe 所在的文件夹,然后调用 install project.exe

Hope this helps希望这可以帮助

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

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