views:

224

answers:

1

I am building an executable using VS2008 and .NET compact framework 3.5, targetting Windows Mobile 6 professional, but whenever I compile the project, everything that I have specified in the AssemblyInfo.cs file is ignored.

I have done this many times in other projects and it works without problem, but for some reason I cannot get the AssemblyTitle/AssemblyProduct/AssemblyVersion attributes etc to show up (I am trying to view them using Windows Explorer, I am able to see these properties in the details tab for any other assembly that I have built - even other projects in the same solution).

Any suggestions?

A: 

That info is looking at the native version info, which on the desktop is set using the AssemblyFileVersionAttribute. The AssemblyFileVersionAttribute is unsupported in the CF, so the only way to set the version info out of the box is to command-line compile. There is a workaround in this blog.

ctacke
Thanks, but for another compact framework assembly in another project in the same solution all of the information is set correctly. I have also used this same technique for previous projects without problem. It is just this one project that seems to have an issue. The only difference between these two is that one is an exe and the other a dll (though other exe projects have included this information correctly).
Martin Robins
re:Martin's, it seems in my case that it is working perfectly fine and as expected for the DLLs in my project, but it does not work at all for EXE projects. I'm Using VS2008,VB.NET also targeting CFv3.5.
eidylon

related questions