[Mono-bugs] [Bug 55320][Nor] New - mcs search filename in AssemblyKeyFile in local directory

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Mon, 8 Mar 2004 15:00:31 -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 gert.driesen@pandora.be.

http://bugzilla.ximian.com/show_bug.cgi?id=55320

--- shadow/55320	2004-03-08 15:00:31.000000000 -0500
+++ shadow/55320.tmp.15765	2004-03-08 15:00:31.000000000 -0500
@@ -0,0 +1,38 @@
+Bug#: 55320
+Product: Mono: Compilers
+Version: unspecified
+OS: 
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Normal
+Component: C#
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: gert.driesen@pandora.be               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: mcs search filename in AssemblyKeyFile  in local directory
+
+mcs resolves the filename specified in the AssemblyKeyAttribute assembly
+attribute relative the current directory instead of the directory in which
+the output file is generated.
+
+To reproduce this issue :
+
+1. save both attached files in a directory (eg. /tmp/test)
+2. create a subdirectory (eg. /tmp/test/subdir)
+3. move test.snk to the newly created subdirectory (mv test.snk subdir/)
+4. compile AssemblyInfo.cs as a library and use a filename in the newly
+created directory as output file (eg. mcs /out:subdir/test.dll
+/target:library AssemblyInfo.cs
+
+you'll get the following compile error :
+
+error CS0016: Could not write to file `subdir/test.dll', cause: Could not
+find file "test.snk"
+
+mcs should in fact treat the filename in AssemblyKeyFile as a path relative
+to the output file.