Skip to content

Opening the solution and running the source on your machine

Cyral edited this page Mar 25, 2014 · 3 revisions

Bricklayer is coded in C# using the XNA game framework. The below steps will guide you through installing XNA into your version of visual studio, getting the repo onto your machine, and running the game.

Step 1: Install XNA

Your installation instructions will be different depending on the version of Visual Studio installed.

A. I have Visual Studio C# 2010 or older

Good news, this will be simple!

  1. Download Microsoft XNA Game Studio 4.0 and install it.

  2. Verify it's installation by opening visual studio, clicking "New Project", then selecting "Templates > Visual C#", and checking if _"XNA Game Studio" _exists below it.

B. I have Visual Studio 2012 or 2013

Visual Studio 2012 and later does not support XNA, however, it is possible to install it via some workarounds.

  1. Use the unofficial installer found here. This will be the fastest way to install it. Select the version for your visual studio and follow the steps inside. Alternatively, follow the steps in this StackOverflow question

  2. Verify it's installation by opening visual studio, clicking "New Project", then selecting "Templates > Visual C#", and checking if _"XNA Game Studio" _exists below it.

C. I do not have Visual Studio, or do not have the correct version installed

  1. Download and install "Visual Studio Express 2013 for Windows Desktop" from the Visual Studio downloads page.

  2. Follow the steps in part B of this section for installing XNA in Visual Studio 2013.

Step 2: Open the solution

You may now clone or download the project as a zip. Once you have the code on your machine, open Source\Bricklayer.sln with visual studio.

If you want to run the server and client simutaniously, you must right click on "Solution "Bricklayer", "Properties", then go to "Common Properties > Startup Project". You may now choose "Multiple Startup Projects". Set the Server to start first, and the client to start second.