-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathdefault.ps1
More file actions
30 lines (26 loc) · 796 Bytes
/
default.ps1
File metadata and controls
30 lines (26 loc) · 796 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
Properties {
$configuration = "Release"
$solutionDir = Split-Path $psake.build_script_file
$buildDir = "$solutionDir\_build"
$logsDir = "$buildDir\logs"
$packageDir = "$buildDir\packages"
$packageVersion = "0.0.1"
}
Task default -Depends Clean, Build, Package
Task Clean {
Exec { msbuild StatsDPerfMon.sln -t:clean -p:"Configuration=$configuration" }
if (Test-Path $buildDir) {
Remove-Item $buildDir -recurse -force
}
if (Test-Path $packageDir) {
Remove-Item $packageDir -recurse -force
}
mkdir $buildDir
mkdir $packageDir
}
Task Build {
Exec { msbuild StatsDPerfMon.sln -p:"Configuration=$configuration" }
}
Task Package {
Exec { .nuget\nuget.exe pack .\StatsDPerfMon\StatsDPerfMon.csproj -Prop Configuration=$configuration -out "$packageDir" -version $packageVersion }
}