mail-archives/mono-bugs/2010-October/104609.html

179 строки
5.1 KiB
HTML

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<TITLE> [Mono-bugs] [Bug 644673] New: The -addmodule parameter fails to load types in the loaded module for type resolution
</TITLE>
<LINK REL="Index" HREF="index.html" >
<LINK REL="made" HREF="mailto:mono-bugs%40lists.ximian.com?Subject=%5BMono-bugs%5D%20%5BBug%20644673%5D%20New%3A%20The%20-addmodule%20parameter%20fails%20to%0A%20load%20types%20in%20the%20loaded%20module%20for%20type%20resolution&In-Reply-To=">
<META NAME="robots" CONTENT="index,nofollow">
<META http-equiv="Content-Type" content="text/html; charset=us-ascii">
<LINK REL="Previous" HREF="104627.html">
<LINK REL="Next" HREF="104610.html">
</HEAD>
<BODY BGCOLOR="#ffffff">
<H1>[Mono-bugs] [Bug 644673] New: The -addmodule parameter fails to load types in the loaded module for type resolution</H1>
<B>bugzilla_noreply at novell.com</B>
<A HREF="mailto:mono-bugs%40lists.ximian.com?Subject=%5BMono-bugs%5D%20%5BBug%20644673%5D%20New%3A%20The%20-addmodule%20parameter%20fails%20to%0A%20load%20types%20in%20the%20loaded%20module%20for%20type%20resolution&In-Reply-To="
TITLE="[Mono-bugs] [Bug 644673] New: The -addmodule parameter fails to load types in the loaded module for type resolution">bugzilla_noreply at novell.com
</A><BR>
<I>Thu Oct 7 12:55:12 EDT 2010</I>
<P><UL>
<LI>Previous message: <A HREF="104627.html">[Mono-bugs] [Bug 644660] Stream.Dispose() does not call GC.SuppressFinalize
</A></li>
<LI>Next message: <A HREF="104610.html">[Mono-bugs] [Bug 644673] The -addmodule parameter fails to load types in the loaded module for type resolution
</A></li>
<LI> <B>Messages sorted by:</B>
<a href="date.html#104609">[ date ]</a>
<a href="thread.html#104609">[ thread ]</a>
<a href="subject.html#104609">[ subject ]</a>
<a href="author.html#104609">[ author ]</a>
</LI>
</UL>
<HR>
<!--beginarticle-->
<PRE>
<A HREF="https://bugzilla.novell.com/show_bug.cgi?id=644673">https://bugzilla.novell.com/show_bug.cgi?id=644673</A>
<A HREF="https://bugzilla.novell.com/show_bug.cgi?id=644673#c0">https://bugzilla.novell.com/show_bug.cgi?id=644673#c0</A>
Summary: The -addmodule parameter fails to load types in the
loaded module for type resolution
Classification: Mono
Product: Mono: Compilers
Version: 2.8.x
Platform: All
OS/Version: All
Status: NEW
Severity: Normal
Priority: P5 - None
Component: C#
AssignedTo: <A HREF="http://lists.ximian.com/mailman/listinfo/mono-bugs">mono-bugs at lists.ximian.com</A>
ReportedBy: <A HREF="http://lists.ximian.com/mailman/listinfo/mono-bugs">regisvaquette at gmail.com</A>
QAContact: <A HREF="http://lists.ximian.com/mailman/listinfo/mono-bugs">mono-bugs at lists.ximian.com</A>
Found By: ---
Blocker: ---
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; fr-FR)
AppleWebKit/533.18.1 (KHTML, like Gecko) Version/5.0.2 Safari/533.18.5
I made the test with the files test-416-mod.cs and test-416.cs given with the
Mono 2.8 sources :
1. I compile a .Net module using:
gmcs /target:module test-416-mod.cs.
=&gt; compilation OK
2. I try to compile using:
gmcs /addmodule:test-416-mod.netmodule test-416.cs
&gt;<i> FAIL: test-416.cs(11,17): error CS0246: The type or namespace name `Adder' could not be found. Are you missing a using directive or an assembly reference?
</I>
Reproducible: Always
Steps to Reproduce:
1.gmcs /target:module test-416-mod.cs
2.gmcs /addmodule:test-416-mod.netmodule test-416.cs
3.
Actual Results:
test-416.cs(11,17): error CS0246: The type or namespace name `Adder' could not
be found. Are you missing a using directive or an assembly reference?
Expected Results:
No error
The content of test-416-mod.cs is :
namespace n1
{
public class Adder
{
public int Add(int x, int y)
{
return x+y;
}
}
}
--
Configure bugmail: <A HREF="https://bugzilla.novell.com/userprefs.cgi?tab=email">https://bugzilla.novell.com/userprefs.cgi?tab=email</A>
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.
</PRE>
<!--endarticle-->
<HR>
<P><UL>
<!--threads-->
<LI>Previous message: <A HREF="104627.html">[Mono-bugs] [Bug 644660] Stream.Dispose() does not call GC.SuppressFinalize
</A></li>
<LI>Next message: <A HREF="104610.html">[Mono-bugs] [Bug 644673] The -addmodule parameter fails to load types in the loaded module for type resolution
</A></li>
<LI> <B>Messages sorted by:</B>
<a href="date.html#104609">[ date ]</a>
<a href="thread.html#104609">[ thread ]</a>
<a href="subject.html#104609">[ subject ]</a>
<a href="author.html#104609">[ author ]</a>
</LI>
</UL>
<hr>
<a href="http://lists.ximian.com/mailman/listinfo/mono-bugs">More information about the mono-bugs
mailing list</a><br>
</body></html>