[Mono-bugs] [Bug 73161][Nor] Changed - mcs doesn't support encoding of new DllImportAttribute fields in net 2.0

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Tue, 15 Mar 2005 18:59:06 -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 miguel@ximian.com.


--- shadow/73161	2005-03-01 14:14:20.000000000 -0500
+++ shadow/73161.tmp.21670	2005-03-15 18:59:06.000000000 -0500
@@ -1,14 +1,14 @@
 Bug#: 73161
 Product: Mono: Compilers
 Version: unspecified
+OS: unknown
 OS Details: 
 Status: NEW   
+Severity: Unknown
 Priority: Normal
 Component: C#
 AssignedTo: mono-bugs@ximian.com                            
 ReportedBy: vargaz@gmail.com               
 QAContact: mono-bugs@ximian.com
 TargetMilestone: ---
@@ -26,6 +26,14 @@
 ExactSpelling=false, PreserveSig=true, SetLastError=true,
 BestFitMapping=true, ThrowOnUnmappableChar=true)]
 	public static extern void dllImportMethod ();
 When compiling this code, mcs from HEAD throws a NotImplementException.
+------- Additional Comments From miguel@ximian.com  2005-03-15 18:59 -------
+The problem here is that Reflection.Emit does not support passing
+this special information to the DefinePInvokeMethod;  
+We need to add a Mono-internal method, like we have done in the past
+to allow setting these two variables.  If we get the method in 
+Reflection, the support on the mcs side is very simple.