How to build the WebsitePanel Solution

WebsitePanel provides batch files to assist in the compilation of the source code. These scripts call on MS Build to create a build based on the provided build.xml. Following these steps can assure that you generate a release that can be deployed to a test enironment.

Scripts:

deploy-debug.bat

This script creates a debug build setup packages

deploy-release.bat

This script creates a release build with setup packages

build-debug.bat

This script creates a debug build without setup packages

build-release.bat

This script creates a release build without setep packages

build.xml

This is the configuration file for building compiled versions of WebsitePanel

In order to build you should change the following lines in build.xml

Version: This should be set to major release version

File Version: This should be set to the minor release version

Release Date: Set this to the date of the build

Previous Build Folder: If you would like to create a differential build of the project that only contains files that have changed, please provide compiled versions of the previos version in three directories Portal, EnterpriseServer and Server.

WebsitePanel 1.2.1.6 Portal Files

WebsitePanel 1.2.1.6 Enterprise Server Files

WebsitePanel 1.2.1.6 Server Files

Downloading 3rd-Party Libraries

SimpleDNS API

SDNSAPI.dll is required to build “WebsitePanel.Providers.DNS.SimpleDNS50″ project.

Download “Simple DNS Plus API for .NET and COM” library from “Downloads” section on www.simpledns.com web site web site (at the time of writing direct link to this library is http://www.simpledns.com/outbox/sdnsapi-setup.exe). Install the library and then copy SDNSAPI.dll (located in “C:\Program Files (x86)\Simple DNS Plus API for .NET and COM” by default) from its installation folder to “Lib” folder of WebsitePanel project.

MySQL .NET Connector

MySQL .NET Connector is required to build “WebsitePanel.Providers.Database.MySql” project.

Go to www.mysql.com web site and download the latest release of “MySQL .NET Connector” library from there (at the time of writing it is located at http://dev.mysql.com/downloads/connector/net/). Install MySQL connector and then copy “MySQL.Data.dll” assembly from its installation folder to “Lib” folder of WebsitePanel project.

MSBuildTasks

Download MS Build Community Tasks from here and deploy. They are required for the scripts to work.

Open build.xml and make sure the “Project” Path on the second line is set to the current location of the installation. This location varies depending on the version of windows you have installed.

Building the Project
Open a Visual Studio command prompt and execute any of the 4 scripts above depending on what you want to produce. Once it completes you will find new folder called “build” that will contain your compiled files.