psake

PSake extensions?

I recently discovered Powershell and through that PSake. If you are using it and you've extended it or created tasks for it, please share! ...

Setting up PSake

Hi, Does anybody know or have a link to how I set up psake to run through powershell? I have absolutely no idea and I can find nothing to tell me. Cheers Paul ...

Psake, Powershell & Wix

I have the below function as a part of my psake build. When the build is executing Candle.exe throws this error: candle.exe : warning CNDL1098: 'ext .\Build\Packages\WixWeb\bin\WixIIsExtension.dll' is not a valid command line argument. I think this is a problem with the way I am passing command line args but I cannot for the life of m...

Determine If Solution Compiles using MSBuild and PSake

Hi, I have put together a PSake (v2.0) build script, and the script is setting the $psake.build_success property as true even thought the call to MSBuild fails. Can anyone advise me on how to alter the script so that the $psake.build_success property will correctly return false when the MSBuild call fails? My PSake build script is a...

How to use psake from a batch file?

What I want is a one file I can double-click that will run the required build process using psake. I'm new to psake and PowerShell so be gentle :-). What I have now are 3 files: File 1: Build.bat PowerShell -ExecutionPolicy Unrestricted -File .\Build.ps1 %1 File 2: Build.ps1 Import-Module .\psake.psm1 Invoke-psake .\BuildTasks.ps1...

Strange behavior with Powershell scriptblock variable scope and modules, any suggestions?

NOTE: I'm using PowerShell 2.0 on Windows Vista. I'm trying to add support for specifying build arguments to psake, but I've run into some strange PowerShell variable scoping behavior dealing specifically with calling functions that have been exported using Export-ModuleMember (which is how psake exposes it's main method). Following i...

Inject command line arguments into psake

I would like to inject command line parameters into my psake build script like: .\build.ps1 Deploy environment="development" But psake will treat every argument as a Task and will answer "task does not exists" Is it possible to inject command line arguments in psake? build.ps1 --> Import-Module '.\psake.psm1' Invoke-psake '.\tasks.ps...

How do you data drive task dependencies via properties in psake?

In MSBuild you can data drive target dependencies by passing a item group into a target, like so: <ItemGroup> <FullBuildDependsOn Include="Package;CoreFinalize" Condition="@(FullBuildDependsOn) == ''" /> </ItemGroup> <Target Name="FullBuild" DependsOnTargets="@(FullBuildDependsOn)" /> If you don't ...

Powershell 2.0 - Running scripts for the command line call vs. from the ISE

Hi, After writing deployment scripts from within the ISE, we need our CI server to be able to run them automatically, i.e. from the command line or via a batch file. I have notice some significant differences between the following calls: powershell.exe -File Script.ps1 powershell.exe -Command "& '.\Script.ps1'" powershell.exe .\Script...

Converting Dos Command to Power Shell command.

I am working with PowerShell 2.0 with Psake 1.4 Here is the dos command that is running that I want to convert to PowerShell. "C:\Program Files\Borland\StarTeam 2005 R2\stcmd.exe" co -p "rubble.barney:dinno@HostName:4455/MySolution/WebApp" -is -fp "D:\FooBar\MySolution\Source" Notice that the path to stcmd has a space in it Notice ...

PSake Error Executing MSBuild Command

Hi All, I have 3 projects in the solution, A WPFApplication and 2 ClassLibrary projects When i build the Solution i get error below.. properties { $base_dir = resolve-path . $build_dir = "$base_dir\build" $buildartifacts_dir = "$build_dir\BuildArtifacts" $sln_file = "$base_dir\Hello.sln" } task default -depend...

Psake nested build does not fail

I have a fairly simple Psake build script (default.ps1) that calls Invoke-Psake from within one of the tasks. Something like this: (default.ps1) . .\utilities.ps1 properties { ...define some properties } task default -depends Step1 task Step1 { Invoke-Psake script2.ps1 } The second build script has a task and does its thing....

psake vs. rake for .NET builds

I'm investigating build tools for use with an ASP.NET MVC 2 application. I like the idea of using a scripting language rather than XML, and have narrowed my choices down to psake or rake. I don't have much experience with Ruby or PowerShell, but am willing to learn either. I don't mind installing Ruby on my build server if that's my best...

What is up with this PowerShell command line quoting/escaping?

I obviously don't know what I'm doing. I have finally got this PowerShell command to work. But I can't figure out why it works. My concern is the final "" chars: &"C:\Program Files\IIS\Microsoft Web Deploy\msdeploy.exe" ` -verb:sync ` -source:contentPath="$build_directory\deploy" ` -dest:contentPath="$server_temp_dire...

Running PSAKE script from the command line

I'm creating a batch file to execute my psake builds while integrating with teamcity and the TFS Powershell commandlets from TFPT and have come up with the following: @ECHO OFF SET COMMAND_TO_EXECUTE= SET COMMAND_TO_EXECUTE=%COMMAND_TO_EXECUTE% "& { SET COMMAND_TO_EXECUTE=%COMMAND_TO_EXECUTE% Import-Module '..\tools\psake\psake.psm1'; ...