Compilation

Coordinator
Nov 28, 2009 at 11:07 PM

This post lists out the steps required to build MTG Player.

Required Software

  • Visual Studio 2008 SP1 with .Net 3.5 SP1
  • MTG Player requires a few 3rd party and/or open source libraries.
    • System.Data.SQLite - ADO.Net data provider for working with the SQLite database MTG Player uses.
    • WPF Extension - You don't need to install this separately. I had to make one minor change to a boolean converter it uses, so the source code with this change is included in the MTG Player source code. Eventually, MTG Player needs to be updated so it can use WPFExtensions in it's unmodified form.
  • MTG Player was built using Expression Blend 3. If you don't have Expression Blend 3 installed you will need to install the following libraries.

Configuration

For maximum compatibility, MTG Player should be built using the x86 CPU configuration. I found that when using the default "Any CPU" configuration System.Data.SQLite would often crash on some 32-bit systems if the player was compiled on a 64-bit machine. By forcing the x86 configuration it should work on all supported target machiens.

Compilation

 As long as the libraries are installed, compilation is as simple as opening MTG.sln and building the solution. If all went well it should compile with no warnings or errors.