BrianMurphy-8946 avatar image
0 Votes"
BrianMurphy-8946 asked BrianMurphy-8946 commented

post-build event to set file comment property

When building a project to produce an exe or dll in Release or Debug mode, is there a way to have a post-build event assign a string such as "Debug" or "Release" to the file's Comment property?

· 2
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

What kind of Comment property do you mean? How do you edit and view such comments manually?

0 Votes 0 ·

I don't know how to do it manually. But I think I have found two solutions.
One is a command line tool:
The other other is to use an .rc resource file.
Since my needs are simple, the .rc approach will work for me.
In visual studio I right click the project and Add/Resource.
Select Version from the list of Types, and then edit it to my preferences.
I create two resource entities this way for one project, one for Release and one for Debug.
I right click on those and edit their Properties/Exclude File From Build, to be excluded from the builds that don't apply.
So far this seems to work very nicely.

0 Votes 0 ·

0 Answers