Subversion Repository
The whole Math.NET project is managed in a Subversion repository with anonymous
readonly access:
Repository URL: svn://svn.opensourcedotnet.info/mathnet/trunk
The file structure is simple:
- /: Build Scripts, Solution Files and Batch Scripts to simplify executing
a build
- /tools: All the tools needed to build and test the project
- /lib: All the project reference libraries
- /src/app: all the projects, each in its own folder (like MathNet.Iridium
for the Iridium project)
- /src/test: all the unit test projects, again each in its own folder (e.g.
MathNet.Iridium.Test)
Getting the Project
Download and Install TortoiseSVN.
Make a new folder (e.g. Math.NET), right-click, select SVN Checkout.
Enter the reposirory URL svn://svn.opensourcedotnet.info/mathnet/trunk and click
OK
Now the newest revision will be downloaded:
Building the Project
Either open Math.NET.sln in Visual Studio 2005 Pro (recommended), or open it in
SharpDevelop, or simply use the build
scripts directly (they don't require Visual Studio). Note that all references and tools required
by the project (except the .Net Framework 2.0 SDK with msbuild) are included, so you don't have
to install tools like NUnit or NAnt yourself.
Building with Build Scripts
To build the whole project and run all unit tests, just execute the following .BAT files in the root directory.
Note that you need to have the .Net Framework 2.0 (or newer) SDK installed. Maybe you'll also need to add
the SDK directory to your PATH system variable (e.g. execute set PATH=%PATH%;C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\).
- Build.bat: Compiles in both release and debug mode, if changes are found (incremental).
- Build_DebugOnly.bat: Same as Build, but only compiles in debug mode (no release mode).
- Clean.bat: Removes all earlier builds
- Build_FromScratch.bat: Removes all earlier builds and projects it depends on, builds dependent projects and then builds itself in both release and debug mode. Do this the first time and whenever you want to rebuild the whole solution from scratch.
- Test.bat: Executes the unit tests to check whether it functions properly.
Update the Project
The update your local copy to the newest revision, right-click in the Math.NET folder
and select SVN Update.
Alternatively you can execute the build script Update_Source.bat if you prefer not to use TortoiseSVN.