This repository has been archived by the owner on Jun 3, 2024. It is now read-only.
forked from MindscapeHQ/raygun4net
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuildWindowsStore.ps1
31 lines (28 loc) · 2.2 KB
/
buildWindowsStore.ps1
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
31
properties {
$root = $psake.build_script_dir
$windows_store_solution_file = "$root/Mindscape.Raygun4Net.WindowsStore.sln"
$configuration = "Release"
$signed_configuration = "Sign"
$build_dir = "$root\build\"
$signed_build_dir = "$build_dir\signed"
$msbuild12 = "${env:ProgramFiles(x86)}\msbuild\12.0\bin\msbuild.exe"
}
task default -depends CompileWindowsStore, CompileWindowsStoreSigned
task CompileWindowsStore {
& $msbuild12 $windows_store_solution_file /m /p:OutDir=$build_dir /p:Configuration=$Configuration
move-item $build_dir/Mindscape.Raygun4Net.WindowsStore/Mindscape.Raygun4Net.WindowsStore.dll $build_dir
move-item $build_dir/Mindscape.Raygun4Net.WindowsStore/Mindscape.Raygun4Net.WindowsStore.pdb $build_dir
move-item $build_dir/Mindscape.Raygun4Net.WindowsStore.Tests/Mindscape.Raygun4Net.WindowsStore.Tests.dll $build_dir
move-item $build_dir/Mindscape.Raygun4Net.WindowsStore.Tests/Mindscape.Raygun4Net.WindowsStore.Tests.pdb $build_dir
remove-item -force -recurse $build_dir/Mindscape.Raygun4Net.WindowsStore -ErrorAction SilentlyContinue | Out-Null
remove-item -force -recurse $build_dir/Mindscape.Raygun4Net.WindowsStore.Tests -ErrorAction SilentlyContinue | Out-Null
}
task CompileWindowsStoreSigned {
& $msbuild12 $windows_store_solution_file /m /p:OutDir=$signed_build_dir /p:Configuration=$signed_configuration
move-item $signed_build_dir/Mindscape.Raygun4Net.WindowsStore/Mindscape.Raygun4Net.WindowsStore.dll $signed_build_dir
move-item $signed_build_dir/Mindscape.Raygun4Net.WindowsStore/Mindscape.Raygun4Net.WindowsStore.pdb $signed_build_dir
move-item $signed_build_dir/Mindscape.Raygun4Net.WindowsStore.Tests/Mindscape.Raygun4Net.WindowsStore.Tests.dll $signed_build_dir
move-item $signed_build_dir/Mindscape.Raygun4Net.WindowsStore.Tests/Mindscape.Raygun4Net.WindowsStore.Tests.pdb $signed_build_dir
remove-item -force -recurse $signed_build_dir/Mindscape.Raygun4Net.WindowsStore -ErrorAction SilentlyContinue | Out-Null
remove-item -force -recurse $signed_build_dir/Mindscape.Raygun4Net.WindowsStore.Tests -ErrorAction SilentlyContinue | Out-Null
}