[Mono-dev] need corlib 46, which monocharge would that be in?

Atsushi Eno atsushi at ximian.com
Thu Mar 16 11:00:22 EST 2006


> Yes, and as you've probably surmised I'm trying to do run your example
> code from http://monkey.workarea.jp/lb/archive/2005/3-12.html but even
> after getting Commons.Xml.Relaxng into the gac I still get errors
> claiming that Commons namespaces cannot be found when trying to
> compile test.cs (using msc), this also includes the Namespaces under
> Commons of course,
> using Commons.Xml.Relaxng;
> using Commons.Xml.Relaxng.Rnc;
> using Commons.Xml.Nvdl;
> raises six errors.

Maybe those errors will go away with -r:Commons.Xml.Relaxng.dll
option to the compiler command line. mcs (gmcs), in fact as well
as csc, does not automatically recognize assemblies in the GAC
that are possibly referenced (by nature of assembly qualification).

> Since you're aware of the UBL connection I'll go into a little more context
> I went this route (Mono) because getting the precompiled
> http://www.asahi-net.or.jp/~eb2m-mrt/dsdl/enovdl.exe to work with XML
> Schema was of course problematic.
> On the off-chance that you know anything about this application:
>  I am running .Net 2.0 but am still getting the 1.* error, was the bug
> not fixed in 2.0 as expected or could it be that the 1.1 that I have
> running side by side with my 2.0 is being used in the application, and
> is there a way to change it?

If you are going to run your application (well, seems like it
is my code ;-) under MS.NET, then you will have to copy
Commons.Xml.Relaxng.dll *from 2.0 directory* of the monocharge
to the same directory you are running mcs. No GAC installation is
required. (For Mono it is easier to install it to GAC since there
is already Commons.Xml.Relaxng.dll in the mono GAC.)

And then the compiler should be either csc from .NET 2.0 or gmcs,
not mcs (since in lax speaking mcs generates executables that
targets .NET 1.x). As long as you compile it with mcs, the
generated executable targets .NET 1.x, not 2.0.

As noted above, you need -r:Commons.Xml.Relaxng.dll.

> Sorry to be asking so many stupid questions but the .Net stacks are
> not my technology of greatest familiarity so I'm somewhat lost as well
> as in a situation where I'm just interested in getting something up
> and running quickly, so I can move onto the other tests that are
> actually important for the project.
> It could be that this should be off the mono-devel list since it's
> pretty specific at this point.

Well, mono-list is better for mono users like you, but it is
trivial problem. It is of course OK to just send messages to me.

Oh, and I should warn that this NVDL stuff is so unused and it
is likely to happen that you find bugs here and there ;-)

Atsushi Eno

More information about the Mono-devel-list mailing list