This project has moved. For the latest updates, please go here.

Build, Test and Run the VTS without Visual Studio

After pulling down the source code from CodePlex and installing the prerequisites, you can run the batch files to build the solution, run the unit tests and bring up the VTS GUI.

There are several batch files (.bat) in the root of the Vts folder for this purpose:

  • BuildTestRelease.bat - This file cleans up all the build folders and calls all other batch files
  • DesktopBuild.bat - Builds the main desktop projects in the solution
  • DesktopTests.bat - Runs the unit tests for the desktop projects
  • SilverlightBuild.bat - Builds the main Silverlight projects in the solution

There are also 2 batch files within the solution that are used to create the release versions of MCCL application and the MATLAB package.

  • ..\VTS\matlab\CreateRelease.bat
  • ..\VTS\src\Vts.MonteCarlo.CommandLineApplication\CreateRelease.bat

To build the entire solution in Debug and Release, right click the BuildTestRelease.bat file and select "Run as administrator".
Note: This batch file will delete the build folder, the bin directory in the MonteCarlo.CommandLineApplication project and the Vts_library folder in matlab\vts_wrapper.

All the applications and dlls are output to the build folder, the desktop unit test results are output to an XML file in the root folder, TestResults.xml, the Silverlight unit tests and the GUI are run from a browser window.

Each of the batch files can be run separately but DesktopTests.bat does require that all configurations of the Desktop projects have been built.

To build only the desktop projects:

  • Run DesktopBuild.bat as administrator
  • Run DesktopTests.bat
  • The MCCL command-line application can be accessed here:
    ..\VTS\build\apps\mc\Release\mc.exe

To build only the Silverlight projects:

  • Run SilverlightBuild.bat as administrator
  • To run the Silverlight unit tests, open this html page in a browser:
    ..\VTS\src\Vts.Test\Bin\Release\TestPage.html 
  • To run the GUI open one of the following html pages in a browser: 
    ..\VTS\src\Vts.Gui.Silverlight\Bin\ReleaseWhiteList\TestPage.html (Web Version)
    ..\VTS\src\Vts.Gui.Silverlight\Bin\Release\TestPage.html (Complete Version)

The MonoBuild.sh file is a shell script for Linux that will build the desktop projects (Silverlight does not work on Linux) and create the build folder. This file requires that Mono be installed on Linux.

Last edited Jul 13, 2012 at 5:45 PM by lmalenfant, version 6

Comments

No comments yet.