MonoDevelop
Greetings,
Using MonoDevelop, you first need to start a project and then change some of the default settings.
Starting a Project:
- Open MonoDevelop
- Select File, New Project.
- Click "Console Project"
- Enter a Name (for example "RunUOv2-Mono")
- Click New.
Default Settings
- Switch to .Net 2, instead of .Net 1 - Do this by click Project, then Options. Under Genernal, Runtime Options, select 2.0.
- Allow Unsafe Code - On the same screen, go to Configuration, Debug, Code Generation. Check "Allow Unsafe Code". Do the same under Release.
- Save your settings.
- Right click in the "Solutions" pane and add your "*.cs" files.
- Right click in the "Solutions" pand and add each folder (ContextMenus, Gumps, Items, Menus, Network, and Persistence.
- Now add the files under the folders.
- Right click on "References", then Edit References. Add all the "System.???" files. I also threw in the ones call "Microsoft.???".
- Save your settings.
If I run the files in MonoDevelop this is the error I get...
RunUO - [www.runuo.com] Version 2.0, Build 2572.23833
Core: Running on .NET Framework Version 2.0.50727
Scripts: Compiling C# scripts...Error:
System.Exception: Compiler failed to produce the assembly. Stderr='', Stdout=''
at Mono.CSharp.CSharpCodeCompiler.CompileFromFileBatch (System.CodeDom.Compiler.CompilerParameters options, System.String[] fileNames) [0x00255] in /home/test/src/mono-1.2.2.1/mcs/class/System/Microsoft.CSharp/CSharpCodeCompiler.cs:235
at Mono.CSharp.CSharpCodeCompiler.CompileAssemblyFromFileBatch (System.CodeDom.Compiler.CompilerParameters options, System.String[] fileNames) [0x00012] in /home/test/src/mono-1.2.2.1/mcs/class/System/Microsoft.CSharp/CSharpCodeCompiler.cs:138
at System.CodeDom.Compiler.CodeDomProvider.CompileAssemblyFromFile (System.CodeDom.Compiler.CompilerParameters options, System.String[] fileNames) [0x00014] in /home/test/src/mono-1.2.2.1/mcs/class/System/System.CodeDom.Compiler/CodeDomProvider.cs:119
at Server.ScriptCompiler.CompileCSScripts (Boolean debug, Boolean cache, System.Reflection.Assembly& assembly) [0x00197] in /home/test/Projects/RunUOv2-MD/RunUOv2-MD/ScriptCompiler.cs:227
at Server.ScriptCompiler.Compile (Boolean debug, Boolean cache) [0x00034] in /home/test/Projects/RunUOv2-MD/RunUOv2-MD/ScriptCompiler.cs:529
at Server.Core.Main (System.String[] args) [0x002ac] in /home/test/Projects/RunUOv2-MD/RunUOv2-MD/Main.cs:427
This exception is fatal, press return to exit
Any suggestions?
-Ravon

0 Comments:
Post a Comment
<< Home