-
Couldn't load subscription status.
- Fork 0
Getting and Building the Code
In order to work with the code base, you'll first need to install the following.
- Visual Studio 2015
Using your favorite git client, clone the repository.
git clone https://github.com/aspnet/EntityFramework.gitBefore 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 initializeThis 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.
Solving common build initialize errors
- Check that https://myget.org/gallery/aspnetcidev and https://nuget.org are accessible.
- Clean the source directory.
git clean -xidwill clean files in the EF source directory. - Clear nuget packages and caches.
nuget.exe locals -clear allwill delete the NuGet caches. (You can get nuget.exe from https://dist.nuget.org/index.html). - Reinstall .NET Core CLI. Our build script automatically installs a version to
%LOCALAPPDATA%\Microsoft\dotnet.
Our tests are written using xUnit.net 2.0, and can be run TestDriven.Net. Given the rapid iteration of the pre-release platform we are building on top of, we do not ensure that other test runners work. Once things stabilize, we will support other test runners.
You can also build and run tests from Command Prompt using the following.
build