How do you change the file version?

I have created a C# app in VS2003. I have changed "assembly: AssemblyFileVersion" to what I need. I then right-click on the .exe file in explorer and select Properties. In the Version tab, the File Version at the top is "0.0.0.0". In the list box, the File Version shows what I changed. How do I get the File Version at the top of the dialog to reflect this

Answer this question

How do you change the file version?

  • misbrisco

    Still no luck. I deleted everyhing in my bin\Debug directory and rebuilt the solution. I have the following line in my AssemblyInfo.cs:

    [assembly: AssemblyVersion("1.0.1010.0")]


  • Shanta Appukuttan

    I tried that and the File Version at the top is still 0.0.0.0. The AssemblyVersion did reflect this change.
  • bY73-_-j0b

    Hi

    Just ReBuild the Project



  • Dazza1412

    Use...

    [assembly: AssemblyVersion("1.0.1010.0")]

    Hope that helps.



  • mrodriguezc

    You need to set the FileVersion. The FileVersion is different from the AssemblyVersion. It does not play a part in the identity of an assembly.

  • Ben0s

    OK, I figured out what happened. I had changed FileVersion, but not to a 9.9.9.9 format. I used a non-standard version format per our SQA department. It shows up OK as the file version in the list, but not in the dialog. When I changed it to 1.2.3.4, it showed up fine.
  • jstar

    Hi again

    Delete The .DLL and .pdb files and then rebuild the whole solution or the project the the Chnages will be reflect. I have tried it myself and work fine.



  • rhyd

    Did that.
  • How do you change the file version?