Skip to content

BuildingEntlib

tsahi edited this page Sep 26, 2020 · 1 revision
Documentation > BuildingEntlib

Getting and Building the Application Blocks

The first order of business is to make sure you can build the code on your machine.

  1. The easiest way to work with the code base is to install Visual Studio. You can also work with any other IDE provided you have .NET Framework 4.5 and MSBuild on your machine.
  2. Using your preferred git client, clone our git repo located at https://github.com/EnterpriseLibrary/data-access-application-block.git
git clone https://github.com/EnterpriseLibrary/data-access-application-block.git
  1. If you installed Visual Studio, you can now open the Data.sln file in the root of the /source folder and build using Visual Studio.

Alternatively, there is a build.proj file in the build folder that will build the code base and run the tests from the command line. This file should be run from the Developer Command Prompt for Visual Studio using MSbuild, and it will restore the necessary NuGet packages from the NuGet public feed*.

msbuild build\build.proj

Building the code will produce .nupkg files in bin\Release\Nuget. You can create a local NuGet feed to use these NuGet packages in your projects.

*By running the build, you will be initiating the download of other software from NuGet.org. You are responsible for locating, reading and complying with the license terms that accompany each such software. Each software that you obtain through this feed is licensed to you by its respective owner. We grant you no rights for third-party software from this feed.

Running Tests

The solutions contain several test projects which are written using the Visual Studio Unit Testing Framework. These tests can be run directly inside Visual Studio, and they are also run when building from the command line. To avoid running the tests in a build set the RunTests property to false.

msbuild build\build.proj /p:RunTests=false