kubuntUO - RunUO linux for human beings

Friday, January 05, 2007

Notes: Compiling RunUO with MonoDevelop

Greetings,

I am now trying to compile the RunUO source using MonoDevelop. I have set the runtime option to v2.0 (for .net2) and checked "Allow unsafe code", in the options section of MonoDevelop.

After a long and manual process of importing the files, I have this error when I go to compile the program...

Type=Error, Description=The type or namespace name `Xml.XPath' could not be found. Are you missing a using directive or an assembly reference?(CS0246)

Here is the code...

using System;
using System.Collections;
using System.Collections.Generic;
using System.Xml;
using Server.Network;
using Server.Targeting;

namespace Server
{
public enum MusicName
{

It's just a "using" statement. I have searched and it appears that XML should be supported, but it too just doesn't work. Any ideas? Anyone?

-Ravon

UPDATE:

I found the answer at the follow website. You must turn on System.XML, not just add it in your statements.

http://www.nabble.com/monodevelop-not-finding-System.Xml-tf1810135.html

Well it's not something you do in the source code, but in the project:

Right-click the project icon/name in the solution tree and choose "Add
Reference". In the upcoming dialog, select the System.Xml.dll in the
appropriate list and click OK.

That's it. And is very similar to what you have to do in VS.NET, the
difference here is that VS.NET assumes a LONG list of implicit
references, that include that dll, and MD want you to be explicit,
because that way compilation will be faster (noticeably) as well as it
will reduce the application startup time (not so noticeably).

0 Comments:

Post a Comment

<< Home