-
-
Notifications
You must be signed in to change notification settings - Fork 59
Convert~psake
Roman Kuzmin edited this page Aug 20, 2022
·
2 revisions
You may convert your psake scripts to Invoke-Build scripts somewhat automatically by the script Convert-psake.ps1. The scripts is not included to the packages. Get it from the repository or download by this PowerShell command:
# download Convert-psake.ps1 to the current location
Invoke-WebRequest https://raw.githubusercontent.com/nightroman/Invoke-Build/main/Convert-psake.ps1 -OutFile Convert-psake.ps1
Having downloaded the script, run it on your my.psake.ps1
in order to convert to my.build.ps1
:
# convert my.psake.ps1 to my.build.ps1
Convert-psake.ps1 my.psake.ps1 | Set-Content my.build.ps1
Mind the convention, Invoke-Build scripts are named like *.build.ps1
.
For simple scripts, the conversion might be complete.
Open the result .build.ps1
file in a text editor.
Review and modify the TODO sections as described.
Happy building!
See also Comparison with psake for more details about the differences.
- Concepts
- Script Tutorial
- Incremental Tasks
- Partial Incremental Tasks
- How Build Works
- Special Variables
- Build Failures
- Build Analysis
- Parallel Builds
- Persistent Builds
- Portable Build Scripts
- Using for Test Automation
- Debugging Tips
- VSCode Tips
Helpers
- Invoke Task from VSCode
- Generate VSCode Tasks
- Invoke Task from ISE
- Resolve MSBuild
- Show Build Trees
- Show Build Graph
- Argument Completers
- Invoke-Build.template
Appendix