PC Review


Reply
Thread Tools Rate Thread

Assembly Version

 
 
Christopher Pragash
Guest
Posts: n/a
 
      26th Aug 2003
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


 
Reply With Quote
 
 
 
 
Jon Skeet
Guest
Posts: n/a
 
      26th Aug 2003
Christopher Pragash <(E-Mail Removed)> wrote:
> 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.

--
Jon Skeet - <(E-Mail Removed)>
http://www.pobox.com/~skeet/
If replying to the group, please do not mail me too
 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
The application requires that assembly office Version 12.0.0.0 be installed in the Global Assembly Cache (GAC) first. Bill Nguyen Microsoft VB .NET 2 30th May 2008 11:17 PM
What is the difference between runtime version and the version propery in a .net assembly nenzax Microsoft Dot NET Framework 1 18th Feb 2007 08:24 PM
is there any way to get to a unique build verion of an assembly at runtime? e.g. a version that is unique to the time that the assembly was built? Daniel Microsoft Dot NET Framework 1 14th Dec 2004 04:10 PM
is there any way to get to a unique build verion of an assembly at runtime? e.g. a version that is unique to the time that the assembly was built? Daniel Microsoft C# .NET 1 10th Dec 2004 03:06 AM
Assembly version from unloaded assembly bw Microsoft Dot NET Framework 5 14th Aug 2003 06:41 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:15 PM.