{"id":14063790,"url":"https://github.com/qbikez/ps-csproj","last_synced_at":"2025-07-29T16:31:54.482Z","repository":{"id":9109731,"uuid":"51323341","full_name":"qbikez/ps-csproj","owner":"qbikez","description":"Tools for managing csproj files","archived":false,"fork":false,"pushed_at":"2022-06-22T16:24:05.000Z","size":526,"stargazers_count":16,"open_issues_count":7,"forks_count":4,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-12-04T01:36:06.622Z","etag":null,"topics":["csproj","nuget","powershell"],"latest_commit_sha":null,"homepage":"","language":"PowerShell","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/qbikez.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":null,"support":null}},"created_at":"2016-02-08T20:04:13.000Z","updated_at":"2023-08-04T09:30:37.000Z","dependencies_parsed_at":"2022-09-20T16:42:39.103Z","dependency_job_id":null,"html_url":"https://github.com/qbikez/ps-csproj","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/qbikez/ps-csproj","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/qbikez%2Fps-csproj","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/qbikez%2Fps-csproj/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/qbikez%2Fps-csproj/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/qbikez%2Fps-csproj/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/qbikez","download_url":"https://codeload.github.com/qbikez/ps-csproj/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/qbikez%2Fps-csproj/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267718278,"owners_count":24133448,"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","status":"online","status_checked_at":"2025-07-29T02:00:12.549Z","response_time":2574,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["csproj","nuget","powershell"],"created_at":"2024-08-13T07:03:30.589Z","updated_at":"2025-07-29T16:31:54.184Z","avatar_url":"https://github.com/qbikez.png","language":"PowerShell","funding_links":[],"categories":["PowerShell"],"sub_categories":[],"readme":"[![Build status](https://ci.appveyor.com/api/projects/status/7rlfl6ur1uny4449/branch/master?svg=true)](https://ci.appveyor.com/project/qbikez/csproj/branch/master)\n[![Gitter Chat](https://badges.gitter.im/qbikez/ps-csproj.png)](https://gitter.im/heavymetaldev/Lobby)\n\n## Installation\n\nIf you're running Windows 10 or later, install from [PowerShell Gallery](https://www.powershellgallery.com/packages/csproj/):\n\n```powershell\nPS\u003e PowerShellGet\\Install-Module csproj\n```\n\nOn Windows 8, you'll neeed to install PackageManagement manually (using [psbootstrap](https://github.com/qbikez/ps-bootstrap)) to be able to use `Install-Module`:\n\n```powershell\nPS\u003e ((New-Object System.Net.WebClient).DownloadString('https://bit.ly/psbootstrap')) | out-file \"$env:localappdata/ps-bootstrap/bootstrap.ps1\"; \u0026 \"$env:localappdata/ps-bootstrap/bootstrap.ps1\"\nPS\u003e PowerShellGet\\Install-Module csproj\n```\n\n## Usage\n\n```powershell\nPS\u003e import-module csproj\n```\n\n### Create and push nuget for a csproj\n\n```powershell\nPS\u003e cd \"src/myproject\"\nPS\u003e Push-Nuget -build -source https://www.nuget.org/api/v2/package\n```\n\nThis will:\n * find *csproj* file in *src/my.project*\n * update version in *Properties/AssemblyInfo.cs*, according to [Versioning convention](#versioning-conventions) \n * build it\n * pack nuget, by invoking `nuget pack`\n * push nuget, by invoking `nuget push`\n \nOther usefull parameters:\n * `-Stable` - generate a stable nuget version (without suffix)\n * `-IncrementVersion` - incrememt `patch` version component\n * `-Suffux` - manually set version suffix\n\n\n### Create and push nugets for multiple projects\n\n```powershell\nPS\u003e cd \"reporoot\"    \nPS\u003e push-nugets -project \"My.Project\",\"Other.Project\" -build -source https://www.nuget.org/api/v2/package\n```\n\nThis will:\n * scan your repo for `*.csproj` files (this is done only once and cached in `.projects.json` file)\n * invoke `push-nuget` with provided parameters for every project given in `-project`\n\nOther usefull parameters:\n * `-allowNoNuspec` - allow pushing of packages without a .nuspec file\n * `-scan` - rescan repo directory for projects\n\n### Convert project references to nuget references\n\n\n1. Make sure the project you're trying to convert is installed as a nuget:\n\n```powershell\nPS\u003e nuget install \"Project.To.Convert\" -out \"packages\"\n```       \n\n2. Convert all references to that projects:\n\n```powershell\nPS\u003e import-module csproj\nPS\u003e tonuget \"path\\to\\my\\solution.sln\" -projectName \"Project.To.Convert\" -packagesDir \"packages\"\n```\n\nThis will:\n * scan all `csproj` files referenced by `solution.sln`\n * replace all project references to `Project.To.Convert` with nuget references to `packages\\Project.To.Convert.LatestVersion`\n * remove `Project.To.Convert` from `solution.sln` \n\n\n## Versioning conventions \u003ca id=\"versioning-conventions\"\u003e\u003c/a\u003e\n\nWe try to follow [GitVersion](http://gitversion.readthedocs.io/en/latest/examples/) as close as possible, while keeping compatibility with nuget.\n\nThe version template looks like this:\n\n    major.minor.patch-{branch-name}{buildno}-{commit hash}\n\n* `{branch-name}` and `{commit hash}` will be filled if project is under version control by Git or Mercurial\n* `{buildno}` is incremented each time you call `push-nuget -build`\n* whole suffix part is limited to 20 chars: 10 for branch,  3 fro buildno, 6 for commit hash\n\n    \n# Contributing\n\n1. Initialize dependencies:\n\n    ```shell\n    npm run init\n    ```\n\n2. Test:\n\n    ```powershell\n    npm test\n    ```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fqbikez%2Fps-csproj","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fqbikez%2Fps-csproj","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fqbikez%2Fps-csproj/lists"}