.net framework 4.5哪里是服务安装程序项目模板? [英] .net framework 4.5 where's the services installer project template?

查看:101
本文介绍了.net framework 4.5哪里是服务安装程序项目模板?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

升级到.Net framework 4.5。 C#services安装程序项目模板在哪里?或者是否有一种安装/部署服务的新方法?谢谢!



我尝试了什么:



尝试搜索nuget网页上找不到爱。

Upgrading to .Net framework 4.5 . Where's the C# services installer project template? Or is there a new method for installing / deploying services? Thanks!

What I have tried:

Tried searching through nuget web and found no love.

推荐答案

将安装程序附加到Windows服务的方法如下:



1)在新项目设置中,选择Windows - > Windows服务项目模板

2)选择/双击Service1.cs

3)右键单击从步骤2打开的设计窗口,然后选择添加安装程序

4)您应该在设计选项卡上看到serviceProcessInstaller1和serviceInstaller1
The way to attach an installer to your windows service is the following steps

1) In new project setup, select Windows -> Windows Service project template
2) Select/double click on Service1.cs
3) Right click on the Design window that opened from step 2, and select "Add Installer"
4) You should see serviceProcessInstaller1 and serviceInstaller1 pop up on the design tab


这篇关于.net framework 4.5哪里是服务安装程序项目模板?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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