Created
March 28, 2014 20:25
-
-
Save igorkulman/9842235 to your computer and use it in GitHub Desktop.
Windows Phone build script made with F# FAKE
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@echo off | |
cls | |
"tools\nuget\nuget.exe" "install" "FAKE" "-OutputDirectory" "tools" "-ExcludeVersion" | |
"tools\FAKE\tools\Fake.exe" build.fsx | |
pause |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// include Fake lib | |
#r @"tools\FAKE\tools\FakeLib.dll" | |
open Fake | |
RestorePackages() | |
// Properties | |
let buildDir = @".\build\" | |
let packagesDir = @".\packages" | |
let releaseDir = @".\release" | |
// Targets | |
Target "Clean" (fun _ -> | |
CleanDirs [buildDir; releaseDir] | |
) | |
Target "Build" (fun _ -> | |
!! @"**/*.csproj" | |
|> MSBuildRelease buildDir "Build" | |
|> Log "AppBuild-Output: " | |
) | |
Target "Deploy" (fun _ -> | |
!! (buildDir + "*.xap") | |
|> Copy releaseDir | |
) | |
Target "Default" (fun _ -> | |
trace "Build completed" | |
) | |
// Dependencies | |
"Clean" | |
==> "Build" | |
==> "Deploy" | |
==> "Default" | |
// start build | |
Run "Default" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment