{"id":19297424,"url":"https://github.com/ackara/ncrement","last_synced_at":"2025-12-26T09:39:43.071Z","repository":{"id":29963238,"uuid":"79577427","full_name":"Ackara/Ncrement","owner":"Ackara","description":"A powershell module for semantic versioning.","archived":false,"fork":false,"pushed_at":"2022-12-08T06:24:23.000Z","size":564,"stargazers_count":4,"open_issues_count":2,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-11-09T19:49:56.318Z","etag":null,"topics":["buildbox","git","powershell","semantic","versioning"],"latest_commit_sha":null,"homepage":"","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Ackara.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"license.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-01-20T16:48:14.000Z","updated_at":"2020-10-26T18:11:49.000Z","dependencies_parsed_at":"2023-01-14T16:00:33.886Z","dependency_job_id":null,"html_url":"https://github.com/Ackara/Ncrement","commit_stats":null,"previous_names":["ackara/buildbox"],"tags_count":27,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ackara%2FNcrement","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ackara%2FNcrement/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ackara%2FNcrement/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ackara%2FNcrement/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Ackara","download_url":"https://codeload.github.com/Ackara/Ncrement/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":223893164,"owners_count":17220834,"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":["buildbox","git","powershell","semantic","versioning"],"created_at":"2024-11-09T23:04:52.972Z","updated_at":"2025-12-26T09:39:43.009Z","avatar_url":"https://github.com/Ackara.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Ncrement\n[![PSGallery](https://img.shields.io/powershellgallery/v/Ncrement.svg)](https://www.powershellgallery.com/packages/Ncrement)\n\n## The Problem\n\nYour application is composed of one or more projects and you need to keep their version number in-sync. \n\n## The Solution\n\n**Ncrement** is a powershell module that help you to apply **semantic versioning** to your projects. It can also synchronize your projects metadata;  by utilizing a `.json` file to store the current version and metadata of your solution, Ncrement can inject said information into a project file.\n\n### Usage\n\nNcrement is available on [powershell gallery](https://www.powershellgallery.com/packages/Ncrement/) `PS\u003e Save-Module -Name Ncrement -Path \u003cpath\u003e`\n\n**[New-NcrementManifest](src/Ncrement/Public/New-NcrementManifest.ps1)**\n\nCreates a new `[PSObject]` that you can use to store your application's version number and metadata. The returned object will contain properties for the version number.\n\n```powershell\n# Example: \nNew-NcrementManifest | ConvertTo-Json | Out-File \"manifest.json\";\n# creates a new '.json' file.\n# sample: { name: \"\", website: \"\", version: { major: 1, minor: 0, patch: 3} ... }\n```\n\n**[Step-NcrementVersionNumber](src/Ncrement/Public/Step-NcrementVersionNumber.ps1)**\n\nTakes a *[Manifest]* Object as a file or `[PSObject]` and increments its version number.\n\n```powershell\n# Example: \n\"C:\\app\\maifest.json\" | Step-NcrementVersionNumber -Minor | ConvertTo-Json | Out-File \"C:\\app\\manifest.json\";\n# before: {version: { major: 1, minor: 0, patch: 3}}\n# after:  {version: { major: 1, minor: 1, patch: 0}}\n```\n\n**[Update-NcrementProjectFile](src/Ncrement/Public/Update-NcrementProjectFile.ps1)**\n\nTakes a project file and a *[Manifest]* object then updates the project's file using the information in the *[Manifest]* object.\n\n```powershell\n# Example:\n$manifest = Get-Content \"C:\\app.csproj\" | ConvertFrom-Json;\nGet-ChildItem -Filter \"*.csproj\" | Update-NcrementProjectFile $manifest -Commit;\n# When the commit [switch] is present the modified files will be committed to source control.\n```\n\nNcrement can update the following project files:\n\n| File-Type      | Description |\n|----------------|-------------|\n| *.*proj        | Any .NET project file.\n| *.vsixmanifest | Visual Studio Extension manifest file.\n| *.psd1         | Powershell module manifest.\n| package.json   | Node project file.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fackara%2Fncrement","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fackara%2Fncrement","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fackara%2Fncrement/lists"}