What you need to do to develop is constantly evolving. This below list was last updated for version 0.23. Leave comments if you try to play and nothing works!


  1. Install a modern version of ROOT. Version 0.4 was cut against 5.28.
    • The solutions are setup for ROOT to be installed in c:\root
    • Make sure you can start a cmd window and type “root” and have it start up. You need to have ROOT in your path or unit tests and other things won’t work properly.
  2. Install a matching set of ROOT.NET wrappers.
  3. Remotion Relinq is required, but it is now stored in the source code repository for LINQToTTree.
  4. Download the NuGet command line tool and make sure to install the required packages.
    • From the LINQtoROOT base directory execute the command nuget install LINQtoTTree\packages.config –o Packages. More info can be found at this blog post.

Visual Studio Configuration

  1. Make sure you start the IDE from a VS command line tool. The reasons is the compiler, cl, must be defined in the environment that the unit tests are run in. To do this
    1. start a visual studio 2010 command line window
    2. Type “devenv” to start the IDE. You can then run the tests
  2. ROOT likes to leave global variables defined, which can cause problems when multiple unit tests are run one after the other the same time. In order to get around this you have to tell Visual Studio to shut down the test harness between runs.
    1. IDE –> Options –> Test Tools
    2. Select the “Test Execution” sub-tab
    3. Uncheck the “keep test execution engine running between tests” option.
  3. When you first attempt to build you’ll get a lot of errors complaining that libCoreWrapper.dll can’t be found. You must teach VisualStudio where to find the dll’s. To do this check the errors from the build to find all the projects that are missing this information. Right click, select properties, select the Reference Paths tab. Add the directory where the dll’s can found. For example, on my computer, this path would be c:\root\NETWrappers\lib\.


Before you can run the tests you need to build the DemosAndTests project. It generates some files that are required to run the full suite of tests in the development project.

Once everything is downloaded and you’ve opened up the project you should be able to use the Visual Studio unit testing framework to run the 400 or so unit tests. If those don’t work, then go back and get them working. I’ve noticed that sometimes not all the tests will run the first time, but they do the second time. This is a bug, but I’ve not been able to reliably reproduce it to track it down.

Last edited Aug 13, 2011 at 7:43 PM by gwatts, version 6


No comments yet.