Setting file version number in Visual Studio 2005 C++

前端 未结 4 954
难免孤独
难免孤独 2021-02-13 11:09

Can anyone point me in the right direction how to configure Visual Studio 2005 with our C++ console project how we can include a \'File Version\' in the details section of the f

4条回答
  •  独厮守ぢ
    2021-02-13 11:46

    Unless you have a good reason for your file version to be different than the version of the assembly inside, I think it is a better idea to provide the AssemblyVersion alone. If you do not specify an AssemblyFileVersion, it will automatically get the same value, so you can see your assembly's version directly in the file's properties.

    The advantage is that you can use a wildcard and allow the version to be automatically incremented, so that every time you compile the library you get a different build and/or revision number. As far as I can tell, this trick does not work with AssemblyFileVersion, so you have to increment it by hand.

    Of course, all this only applies if you're writing .NET code. Are you by any chance talking about a project using unmanaged code?

提交回复
热议问题