views:

228

answers:

2

Does anyone know how to add full (n.n.n.n) Windows file version information to COM dlls and .Net Assemblies compiled from MATLAB? The resulting dlls do not seem to contain a VersionInfo structure and so utilities like Resource Hacker don't work.

A: 

Hi

I don't know how to do this from Matlab. However, we frequently build MEX files (which are just DLLs) from Visual Studio and VS does provide the means to set versioning info for its productions. This is, of course, no use to you if you don't have VS.

Regards

Mark

High Performance Mark
Marky, I have three VS installtions on my laptop but I need to set the version info within the MatLab code unless you know how to do it post compile.
MaSuGaNa
So, what I would do next is figure out how to get your compiler to generate version info, possibly by setting some compilation flags, then figure out how to make the mex command issue the right flag settings when you compiler your DLLs. This is all guesswork on my part, it's all well outside what I have experience of and I'm away from my workstation for the weekend so can't even have a poke around. Do let us know how you get on.
High Performance Mark
+1  A: 

The -W option to MCC allows specifying a major and minor version, but not the build number.

mcc -W 'component_type:component_name,class_name,major.minor'

I'm not sure if this is sufficient to at least put the version resource in place so, to allow editing with some other tool.

mtrw
I do need the full n.n.n.n version info but I will try that to see if it creates a Winodws version structure. Thanks.
MaSuGaNa