Sebastian,
> Could you explain how to carry different file and assembly versions
> in c# assemblies?
For C# assemblies, it is easy. The following sets the assembly version to
1.1.0.0 and the file version to 1.1.0.3222:
[assembly: AssemblyVersion("1.1.0.0")]
[assembly: AssemblyInformationalVersion("1.1.0.3222")]
This is actually very similar to what the .NET framework assemblies do
(notice that all have a different assembly and file versions). Keep in mind,
though, that the file version is *not* taken into account by the .NET
runtime for component versioning.
> We are very interested in this since we use this "feature"
> for our mananged c++ assemblies.
Well, for that just use [AssemblyVersion] to set the assembly version and a
FIleVersion resource for the rest.

Signature
Tomas Restrepo
tomasr@mvps.org
http://www.winterdom.com/
Sebastian Dau - 24 May 2005 07:54 GMT
Hello Tomas,
thanks for your response it appears to be exactly what I was looking for.
The man C++ way was known but non of us was aware of the
AssemblyInformationalVersion.
Thanks in advance, Sebastian Dau
> Sebastian,
>
[quoted text clipped - 17 lines]
> Well, for that just use [AssemblyVersion] to set the assembly version and
> a FIleVersion resource for the rest.
Sebastian Dau - 25 May 2005 12:43 GMT
Tomas,
in addition I'd like to let you know that the file version for c# assemblies
is not set through the AssemblyInformationalVersionAttribute but with the
AssemblyFileVersionAttribute.
Anyway, you did guide me into the right direction.
Thanks again! Sebastian Dau
> Sebastian,
>
[quoted text clipped - 17 lines]
> Well, for that just use [AssemblyVersion] to set the assembly version and
> a FIleVersion resource for the rest.