{"id":14063536,"url":"https://github.com/PoshCode/Tasks","last_synced_at":"2025-07-29T15:33:58.067Z","repository":{"id":202694999,"uuid":"707024167","full_name":"PoshCode/Tasks","owner":"PoshCode","description":"Shared Invoke-Build Tasks ...","archived":false,"fork":false,"pushed_at":"2024-11-01T03:26:57.000Z","size":89,"stargazers_count":2,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-11-23T06:33:58.074Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"PowerShell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/PoshCode.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-10-19T04:29:23.000Z","updated_at":"2024-11-01T03:27:01.000Z","dependencies_parsed_at":"2023-10-31T04:28:26.366Z","dependency_job_id":"73543493-cca9-43d3-a9ea-d2320ced9743","html_url":"https://github.com/PoshCode/Tasks","commit_stats":null,"previous_names":["poshcode/tasks"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PoshCode%2FTasks","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PoshCode%2FTasks/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PoshCode%2FTasks/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PoshCode%2FTasks/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/PoshCode","download_url":"https://codeload.github.com/PoshCode/Tasks/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":228028474,"owners_count":17858340,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-13T07:03:23.232Z","updated_at":"2024-12-04T01:30:58.526Z","avatar_url":"https://github.com/PoshCode.png","language":"PowerShell","readme":"# Opinionated Build Tasks for Invoke-Build\n\n- Requires PowerShell 7.2 or later.\n- Should work with any module from my [PowerShellTemplate](/jaykul/PowerShellTemplate).\n\nI've started using Invoke-Build to run my builds in PowerShell (due mostly to unhappiness with GitHub and Azure Pipelines).\nThis is a collection of tasks I've written that get shared by all my project builds.\n\n## Usage\n\nYour .build.ps1 script _must_ set variables:\n\n### For PowerShell modules\n\n- `$PSModuleName`\n    - The name of the module you're building.\n    - There **must** be a .psd1 module manifest with this name in your source.\n    - The build will create a folder with this name in the output folder\n\nIf you're including building a dotnet project, it's also recommended to set\n\n- `$DotNetPublishRoot`\n    - The target folder for dotnet publish.\n    - Defaults to `$OutputRoot/publish`\n    - For PowerShell modules, I always override this to `$BuildRoot/lib` and add that to the `CopyDirectories` list\n      in my ModuleBuilder `build.psd1` so that it gets copied to the output folder by ModuleBuilder.\n\n### For DotNet assemblies\n\n- `$dotnetProjects`\n    - Specifies which projects to build\n    - I recommend you put this as a parameter on your Build.ps1\n        - Set the default to the full list of your assembly projects\n        - Add an alias: \"Projects\"\n- `$dotnetTestProjects`\n    - Specifies which projects are test projects\n    - I recommend you put this as a parameter on your Build.ps1\n    - Add an alias: \"TestProjects\"\n- `$dotnetOptions`\n    - Specifies further options to pass to dotnet\n    - I recommend you put this as a parameter on your Build.ps1\n    - Add an alias: \"Options\"\n    - Example values:\n        \"-verbosity\" = \"minimal\"\n        \"-runtime\" = \"linux-x64\"\n","funding_links":[],"categories":["PowerShell"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FPoshCode%2FTasks","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FPoshCode%2FTasks","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FPoshCode%2FTasks/lists"}