[Mono-list] NAnt

Dick Porter dick@ximian.com
24 Sep 2002 15:09:27 +0100


On Tue, 2002-09-24 at 14:48, Martin Aliger wrote:
> Next: "NAnt -help" should write some help messages. It does, but in front of them mono writes
> CRITICAL: and something with images
> Here is code which isolates the problem:
> ----------
> using System.Diagnostics;
> using System.Reflection;
> class Test
> {
> 	static public void Main()
> 	{
> 		FileVersionInfo i=FileVersionInfo.GetVersionInfo(Assembly.GetExecutingAssembly().Location);
> 	}
> }

I added a "Console.WriteLine("fvi is {0}, version {1}", i.FileName,
i.FileVersion);" to your test, and I get the following output:

:; mono fvi.exe 
fvi is ./fvi.exe, version 0.0.0.0

:; mono fvi-mcs.exe         
fvi is ./fvi-mcs.exe, version 

(The first is compiled with csc, and has version info in the assembly)

How old is the mono you are using?  The FileVersionInfo class hasn't
been touched in several months.


- Dick