Te Ha

Te Ha

  • NA
  • 3
  • 2.7k

Assembly before the Prebuild Event

Jan 27 2011 5:21 AM
Hello everyone,

I've a little question about the VS 2008. There is the possibility to create a pre-build-event. In this event I call a self-written-methode which should increment the "build-number" in the AssemblyInfo.cs. But that's not my problem, it works. But there's an other problem:
When I call the build-event the methode increment the buildnummer in the AssemblyInfo.cs, but the versionnumber in the builded .exe is still the old!
So I think, the old build-number is written to the .exe before the pre-build-event is activated!?

Have anybody an idea, how to increment the build-number before the old is written to the .exe!?

thx

Answers (4)