Postby Marko » Sun Aug 17, 2014 1:14 am
So I'm trying to compile the server for the first time (I have been using one-click or exe files to install a prebuilt server) - but I want to learn how to compile things correctly so I can eventually do some C# coding of extensions for the server. I'm using the latest version of SharpDevelop (4.4.1) to do the compile, although I also have VSpro2013 (which I tried earlier and it threw similar errors). The process I followed:
I grabbed the code using TortoiseSVN and then loaded the sln into SharpDevelop.
Changed the Build from debug to release and did a build, and got the following warning:
The primary reference "System.Data.SQLite" could not be resolved because it was built against the ".NETFramework,Version=v4.5" framework. This is a higher version than the currently targeted framework ".NETFramework,Version=v4.0". (MSB3274)
This led to two identical Errors:
The type or namespace name 'SQLite' does not exist in the namespace 'System.Data' (are you missing an assembly reference?) (CS0234) - H:\DOLcode\DOLDatabase\Handlers\SQLiteObjectDatabase.cs:29,19
So, thinking I needed to change my target from .NET 4.0 to 4.5, I tried again, this time it completes the compile (with some trivial warnings - ie Storm not supported, a field is created but never used, etc.) but nothing will run. For example as soon as I try to run the DOLConfig.exe it throws the following error:
Problem signature:
Problem Event Name: CLR20r3
Problem Signature 01: dolconfig.exe
Problem Signature 02: 1.9.7.32289
Problem Signature 03: 53effdb2
Problem Signature 04: DOLConfig
Problem Signature 05: 1.9.7.32289
Problem Signature 06: 53effdb2
Problem Signature 07: 65
Problem Signature 08: b
Problem Signature 09: System.IO.FileNotFoundException
OS Version: 6.1.7601.2.1.0.256.48
Locale ID: 1033
Additional Information 1: 0a9e
Additional Information 2: 0a9e372d3b4ad19135b953a78882e789
Additional Information 3: 0a9e
Additional Information 4: 0a9e372d3b4ad19135b953a78882e789
And if I try to run the DOLServer.exe I get a similar error:
Problem signature:
Problem Event Name: CLR20r3
Problem Signature 01: dolserver.exe
Problem Signature 02: 1.9.7.32288
Problem Signature 03: 53effdb1
Problem Signature 04: DOLServer
Problem Signature 05: 1.9.7.32288
Problem Signature 06: 53effdb1
Problem Signature 07: e6
Problem Signature 08: 52
Problem Signature 09: System.IO.FileNotFoundException
OS Version: 6.1.7601.2.1.0.256.48
Locale ID: 1033
Additional Information 1: 0a9e
Additional Information 2: 0a9e372d3b4ad19135b953a78882e789
Additional Information 3: 0a9e
Additional Information 4: 0a9e372d3b4ad19135b953a78882e789
Any Ideas? Do I need to compile against a different .NET Framework? Or use a different compiler? I'm hoping that it's just a trivial setting that I've missed in the compiler configuration? Thanks!