This is the code I use to publish the Microsoft Team Foundation Power Tools package to Chocolatey.
- Follow the instructions on chocolatey.org to setup Chocolatey
- Clone this repository and navigate to the folder in PowerShell
Build.ps1
to create the packagechoco install tfpt -Source "full-directory-path"
to install it locally
And you're done!
When a new release of Microsoft Team Foundation Power Tools is out in the wild, updating this package is easy:
-
Fork this repository to your local environment
-
Open
src\tools\chocolateyInstall.ps1
and update the URL as necessary -
Open
src\tfpt.nuspec
and modify the following properties:- version - Set to match the version of Microsoft Team Foundation Power Tools
- releaseNotes - Set to URL of release notes for new version
-
Commit the changes to a branch and push it to your fork
-
Submit a pull request
After I merge the pull request, I'll publish a new release to Chocolatey so they can review it.