Assembly Version

  • Thread starter Christopher Pragash
  • 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
 
J

Jon Skeet

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top