Build.Settings.bat
All of the bat files call this file to get the properties to set. To make sure we are DRY, we want one file to set up everything in and use those settings from all of the other batch files.
Setup
We need to answer a series of questions about your application so that uppercut can automatically build it for you. To get up and running fast, we have already included a series of conventions so that you will only need to answer questions when things are different.
Here are the three questions most people need to answer.
SET PROJECT_NAME="__SOLUTION_NAME_WITHOUT_SLN_EXTENSION__"
SET REPO_PATH="__FULL_REPOSITORY_PATH__"
SET COMPANY_NAME="__COMPANY__"
becomes
SET PROJECT_NAME="uppercut"
SET REPO_PATH="http://uppercut.googlecode.com/svn/"
SET COMPANY_NAME="FerventCoder Software and ACuriousMind Software"
My solution name is uppercut.sln, so I include it as the project name without the .sln extension. The repository path is not down to a trunk or a branch, but at the very top level of the repository. The company is either a company you work for or your own personal company if you are open source.
Here is the contents of the build.settings.bat file:
-----
::project variables
SET PROJECT_NAME="__SOLUTION_NAME_WITHOUT_SLN_EXTENSION__"
SET PATH_TO_SLN="."
SET REPO_PATH="__FULL_REPOSITORY_PATH__"
SET COMPANY_NAME="__COMPANY__"
SET DB_PROJECT_FOLDER="db"
SET REPORT_PROJECT_FOLDER="reports"
::framework
SET MICROSOFT_FRAMEWORK="net-3.5"
::valid values are net-1.1,net-2.0,net-3.5
SET PROJECT_LANGUAGE="cs"
::valid values are vb,cs
SET TESTING_FRAMEWORK="mbunit"
::valid values are mbunit, nunit
SET SOURCE_CONTROL_TYPE="svn"
::valid values are svn, vss, tfs, vault, git
:: assembly variables
SET VERSION_MAJOR="0"
SET VERSION_MINOR="0"
SET ALLOW_PARTIALLY_TRUSTED_CALLERS="false"
::partially trusted callers doesn't set correctly with assembly generator
::external tool locations
:: -to not use the tool, change to a location that doesn't exist
SET APP_NCOVER="..\..\lib\tools\NCover\NCover.Console.exe"
SET APP_NCOVER_EXPLORER="..\..\lib\tools\NCover\NCoverExplorer.Console.exe"
SET APP_TEST_FOR_NCOVER="..\..\lib\references\MbUnit\MbUnit.Cons.exe"
::SET APP_TEST_FOR_NCOVER="..\..\lib\references\NUnit\nunit-console.exe"
SET APP_NDEPEND="C:\Program Files\NDepend\NDepend.Console.exe"
----
Back to HowToUse?
Comments (0)
You don't have permission to comment on this page.