properties {
	$configuration = 'debug'
	$basedir = resolve-path .
	$nunit = ".\tools\nunit\nunit-console.exe"
	$sln_file = ".\src\Ticketing.sln"
}

task Clean {
	Write-Host 'Cleaning up previous builds...'
	rm 'build' -Force
}

task Init {
	Write-Host 'Creating build output directory...'
	mkdir 'build'
}

task Release {
	$configuration = 'release'
}

task Compile {
	exec msbuild "./src/ticketing.sln"
}

task Test {
	exec $nunit "./src/ticketing.tests/bin/$configuration/ticketing.tests.dll"
}

task Default -depends Compile, Test