build - How to use psake from a batch file? -
What I need is a file, I can double-click which will run the required manufacturing process to use psake .
I'm new to psake and powershell so be very fun: -)
I now have 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 $ args
File 3: BuildTasks.ps1
Task Defaults - Defined Verification, Verify That Verification {Write-Host "} Hello! " } Pair {write-host "joe from hello"}
Is there no way to merge Build.ps1 and BuildTasks.ps1 into a file?
You should be able to do this
powershell -Command " & Amp; {import-module. build.ps1
is free from the file.
Comments
Post a Comment