问题
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:
- In the solution explorer highlight your setup project.
- Then select your "Properties" tab. (not right click the project, this is counter intuitive)
- Find version number at the bottom, when asked to change the product code, select yes.
- That should be it.
Hope that helps.
Paul
回答2:
Yes, As Paul said
- In the solution explorer highlight your setup project.
- Press F4 or open "Properties" tab from View option of Menu of VS. (not by right clicking the project).
- 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