[Mono-bugs] [Bug 70506][Wis] New - Exception from mcs when output assembly name has no extension

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Mon, 13 Dec 2004 09:59:03 -0500 (EST)

Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.

Changed by nazgul@omega.pl.


--- shadow/70506	2004-12-13 09:59:03.000000000 -0500
+++ shadow/70506.tmp.9036	2004-12-13 09:59:03.000000000 -0500
@@ -0,0 +1,46 @@
+Bug#: 70506
+Product: Mono: Compilers
+Version: 1.0
+OS Details: 
+Status: NEW   
+Priority: Wishlist
+Component: C#
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: nazgul@omega.pl               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+Summary: Exception from mcs when output assembly name has no extension
+Please fill in this template when reporting a bug, unless you know what you
+are doing.
+Description of Problem:
+There is an exception from ModuleBuilder when one specify that output is
+exe and output file name has not extension
+Steps to reproduce the problem:
+1. create any compilable C# file t.cs
+2. mcs t.cs -t:exe -out:o
+Actual Results:
+Unhandled Exception: System.ArgumentException: Module file name 'o' must
+have file extension.
+in <0x0008f> System.Reflection.Emit.AssemblyBuilder:DefineDynamicModule
+in <0x0001b> System.Reflection.Emit.AssemblyBuilder:DefineDynamicModule
+in <0x00309> Mono.CSharp.CodeGen:Init (string,string,bool)
+in <0x007fb> Mono.CSharp.Driver:MainDriver (string[])
+in <0x0000f> Mono.CSharp.Driver:Main (string[])
+Expected Results:
+Message, that extensiosn must be provided
+How often does this happen?