Set version on a windows service

痞子三分冷 提交于 2020-01-13 19:56:09

问题


I have a windows service that is installed using a setup project. Things work fine but I would like to be able to set the version of the service as I do with the AssemblyVersion of my assemblies.

The only place where I have been able to see this version number is in the version column in the listing of applications in the add or remove applications dialogue.


回答1:


  1. In the solution explorer highlight your setup project.
  2. Then select your "Properties" tab. (not right click the project, this is counter intuitive)
  3. Find version number at the bottom, when asked to change the product code, select yes.
  4. That should be it.

Hope that helps.

Paul




回答2:


Yes, As Paul said

  1. In the solution explorer highlight your setup project.
  2. Press F4 or open "Properties" tab from View option of Menu of VS. (not by right clicking the project).
  3. You can find version number at the bottom and other options like Product name etc.

I tried it and it worked.. :)



来源:https://stackoverflow.com/questions/9582110/set-version-on-a-windows-service

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!