Setting an executable's file version through C#/VB.NET

2.1k views Asked by At


I have an executable file which comes from an external source, and is always marked with version 1.0.0.0.
Unfortunately, I can't control the way it's compiled, and therefore can not set it's file version during compile-time.

What I want to do is write a simple console application that will modify the version automatically the moment a new version arrives, so that when I send it to the customer, file version will be correct.

I can't seem to find a way to do this after the file is compiled.
I don't care if File Version or Product Version is modified.
Any suggestions would be welcome.

EDIT: I've found this tool: http://www.codeguru.com/tools/standalonetools/article.php/c1403 That does what I need from command line.
It is nice but I rather do it from within code.

Thanks!

0

There are 0 answers