Assembly Version

  • Thread starter Thread starter Christopher Pragash
  • Start date Start date
C

Christopher Pragash

Hello all,

I have an issue with the Assembly Version. I am getting 0.0.0.0 as the
version number!!! I tried recompilng ...but no luck....

Any ideas why this is happening and how I could overcome this one!!

Thanks for all the help in advance.

regards,
Chris
 
Christopher Pragash said:
I have an issue with the Assembly Version. I am getting 0.0.0.0 as the
version number!!! I tried recompilng ...but no luck....

Any ideas why this is happening and how I could overcome this one!!

Could you give a short but complete example? For instance:

using System;
using System.Reflection;

[assembly: AssemblyVersion("1.2.3.4")]
class Test
{
static void Main()
{
Assembly assembly = Assembly.GetExecutingAssembly();
Console.WriteLine (assembly.GetName().Version);
}
}

works fine.
 
Back
Top