Skip to content

Getting and Building the Code

Rowan Miller edited this page Feb 10, 2015 · 13 revisions

Prerequisites

In order to work with the code base, you'll first need to install the following.

@powershell -NoProfile -ExecutionPolicy unrestricted -Command "&{$Branch='dev';iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/aspnet/Home/release/kvminstall.ps1'))}"

Clone the repository

Using your favorite git client, clone the repository.

git clone https://github.com/aspnet/EntityFramework.git

Build from Visual Studio

Before opening the solution, you'll need run the following from Command Prompt. Navigate to the root directory of the solution (~"/EntityFrameWork") in your command prompt, and issue the command:

build initialize

This will download the NuGet packages that we depend on, and reference them from the projects.

You should be able to open the solution in Visual Studio now.

Run tests

Our tests are written using xUnit.net 2.0, and can be run using your favorite runner. We recommend either the xUnit.net runner for Visual Studio 2013 or TestDriven.Net.

Build from Command Prompt

You can also build and run tests from Command Prompt using the following.

build

Clone this wiki locally