[英]Windows Service Template for Visual Studio 2017
The Windows Service Template no longer displays by-default for new projects in Visual Studio 2017....and the installer has no 'search' capability. 对于Visual Studio 2017中的新项目,Windows服务模板不再默认显示....并且安装程序没有“搜索”功能。
All this AZURE stuff is great, but I still gotta do normal 'on-prem' work too...and I hate maintaining 2 versions of Visual Studio. 所有这些AZURE的东西都很棒,但我仍然需要做正常的“本地”工作......而且我讨厌维护2个版本的Visual Studio。
Any thoughts here? 这有什么想法?
Just checked here. 刚看过这里。 I see project "Windows Service (.NET Framework)" under the Windows Classic Desktop folder under Visual C#.
我在Visual C#下的Windows Classic Desktop文件夹下看到了“Windows Service(.NET Framework)”项目。
(Visual Basic has a similar entry.) (Visual Basic有类似的条目。)
Only some templates are shown in parent folders, for more specialist templates you need to be more specific. 父文件夹中只显示一些模板,对于更多专业模板,您需要更具体。
But also the search finds both. 但搜索也找到了。
NB I selected ".NET Desktop" workload on install, which I see you have not. NB我在安装时选择了“.NET桌面”工作负载,我发现你没有。
Also check out this recent post (currently dated 2017-3-30) from MS to do it without the project template: 另请查看MS最近的帖子(目前日期为2017-3-30),无需项目模板:
How to: Write Services Programmatically 如何:以编程方式编写服务
The key points are as follows: 关键点如下:
If you are talking Windows Template Studio Universal then You have to install the extension in Visual Studio. 如果您正在谈论Windows Template Studio Universal,则必须在Visual Studio中安装扩展。
Go to Tools menu >> Extensions & Updates >> Online >>then search for Windows Template Studio 转到工具菜单>>扩展和更新>>在线>>然后搜索Windows模板Studio
OR go to https://marketplace.visualstudio.com/items?itemName=WASTeamAccount.WindowsTemplateStudio#overview 或者转到https://marketplace.visualstudio.com/items?itemName=WASTeamAccount.WindowsTemplateStudio#overview
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.