{"id":50785526,"url":"https://github.com/hmlendea/dotnet-release-scripts","last_synced_at":"2026-06-12T07:30:30.278Z","repository":{"id":352953763,"uuid":"1217356763","full_name":"hmlendea/dotnet-release-scripts","owner":"hmlendea","description":"Small Bash scripts for building self-contained release packages for .NET apps across multiple runtimes.","archived":false,"fork":false,"pushed_at":"2026-04-21T20:20:32.000Z","size":24,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2026-04-21T22:11:18.060Z","etag":null,"topics":["build-script","build-scripts","csharp","dotnet","release-scripts"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/hmlendea.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null},"funding":{"github":"hmlendea","patreon":"hmlendea","open_collective":null,"ko_fi":"hmlendea","tidelift":null,"community_bridge":null,"liberapay":"HMlendea","issuehunt":null,"lfx_crowdfunding":null,"polar":null,"buy_me_a_coffee":"hmlendea","thanks_dev":null,"custom":"https://hmlendea.go.ro/fund.html"}},"created_at":"2026-04-21T20:02:08.000Z","updated_at":"2026-04-21T20:19:41.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/hmlendea/dotnet-release-scripts","commit_stats":null,"previous_names":["hmlendea/dotnet-release-scripts"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/hmlendea/dotnet-release-scripts","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hmlendea%2Fdotnet-release-scripts","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hmlendea%2Fdotnet-release-scripts/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hmlendea%2Fdotnet-release-scripts/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hmlendea%2Fdotnet-release-scripts/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hmlendea","download_url":"https://codeload.github.com/hmlendea/dotnet-release-scripts/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hmlendea%2Fdotnet-release-scripts/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34234557,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-12T02:00:06.859Z","response_time":109,"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":["build-script","build-scripts","csharp","dotnet","release-scripts"],"created_at":"2026-06-12T07:30:29.327Z","updated_at":"2026-06-12T07:30:30.269Z","avatar_url":"https://github.com/hmlendea.png","language":"Shell","funding_links":["https://github.com/sponsors/hmlendea","https://patreon.com/hmlendea","https://ko-fi.com/hmlendea","https://liberapay.com/HMlendea","https://buymeacoffee.com/hmlendea","https://hmlendea.go.ro/fund.html"],"categories":[],"sub_categories":[],"readme":"[![Donate](https://img.shields.io/badge/-%E2%99%A5%20Donate-%23ff69b4)](https://hmlendea.go.ro/fund.html)\n[![License: GPL v3](https://img.shields.io/badge/License-GPLv3-blue.svg)](https://gnu.org/licenses/gpl-3.0)\n\n# .NET Release Scripts\n\nSmall Bash scripts for building self-contained release packages for .NET apps across multiple runtimes.\n\n## What this repository provides\n\nThe `dotnet/` folder contains one script per target .NET major version:\n\n- `2.2.sh`\n- `3.1.sh`\n- `5.0.sh`\n- `6.0.sh`\n- `7.0.sh`\n- `8.0.sh`\n- `9.0.sh`\n- `10.0.sh`\n\nEach script:\n\n1. runs `dotnet publish` for a predefined set of runtime identifiers (RIDs)\n2. outputs the artifacts in `bin/Release`\n3. cleans the temporary publish output after packaging\n\n## Prerequisites\n\n- Bash\n- .NET SDK matching the script family you are using\n- `zip` (used when the script packages output folders)\n- `git` (used to infer app/repository name)\n\n## Usage\n\nRun the scripts from your app folder (project root or solution root):\n\n```bash\nbash /path/to/dotnet-release-scripts/dotnet/\u003cmajor\u003e.sh \u003cversion\u003e\n```\n\nExample:\n\n```bash\nbash ./dotnet/8.0.sh 1.4.0\n```\n\nThe `\u003cversion\u003e` argument is required.\n\nFor the `.NET 7` script only, you may disable trimming:\n\n```bash\nbash ./dotnet/7.0.sh 1.4.0 --no-trim\n```\n\n(`--no-trimming` is also accepted.)\n\n## Runtime matrix\n\nThe scripts publish for the following RIDs:\n\n| Script | Runtime identifiers |\n| --- | --- |\n| `2.2.sh`, `3.1.sh`, `5.0.sh` | `linux-arm`, `linux-arm64`, `linux-x64`, `osx-x64`, `win-arm64`, `win-x64` |\n| `6.0.sh`, `7.0.sh` | `linux-arm`, `linux-arm64`, `linux-x64`, `osx-arm64`, `osx-x64`, `win-arm64`, `win-x64` |\n| `8.0.sh`, `9.0.sh` | `linux-arm64`, `linux-x64`, `osx-arm64`, `osx-x64`, `win-arm64`, `win-x64` |\n| `10.0.sh` | `linux-arm`, `linux-arm64`, `linux-x64`, `osx-arm64`, `osx-x64`, `win-arm64`, `win-x64` |\n\n## Output and naming\n\n- Artifacts are written to your app's `bin/Release` directory.\n- Temporary staging is done in `bin/Release/.publish-script-output` and removed at the end.\n- Output file names are based on repository name, version, and architecture.\n\nPackaging behavior differs by script generation:\n\n- `2.2.sh` to `6.0.sh`: always creates `.zip` files.\n- `7.0.sh` to `10.0.sh`: if the publish output contains one non-PDB file, it copies/renames that file directly; otherwise it creates a `.zip`.\n\n## Project layout expectations\n\nThe scripts try to detect a main project automatically:\n\n- if an `.sln` exists in the current directory, they pick the first project listed in it\n- otherwise they use the current directory as the main project directory\n\nThen they publish the first `.csproj` found in that directory.\n\n## Known limitations\n\n- Solution/project autodetection is heuristic-based (first `.sln`, first listed project, first `.csproj`).\n- Some scripts rely on `RootNamespace` for binary renaming; unusual project files may produce unexpected names.\n- Trimming options vary by script generation and .NET version.\n\n## Contributing\n\nContributions are welcome.\n\nPlease:\n\n- keep pull requests focused and consistent with existing style\n- update documentation when behaviour changes\n\n## License\n\nLicensed under the GNU General Public License v3.0 or later.\nSee [LICENSE](./LICENSE) for details.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhmlendea%2Fdotnet-release-scripts","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhmlendea%2Fdotnet-release-scripts","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhmlendea%2Fdotnet-release-scripts/lists"}