{"id":22837155,"url":"https://github.com/cake-contrib/cake.exceldnapack","last_synced_at":"2025-09-06T00:44:22.056Z","repository":{"id":38455879,"uuid":"316557549","full_name":"cake-contrib/Cake.ExcelDnaPack","owner":"cake-contrib","description":":cake: :jigsaw: :package: Cake addin that makes ExcelDnaPack available as a tool in Cake build scripts","archived":false,"fork":false,"pushed_at":"2025-08-12T08:35:27.000Z","size":199,"stargazers_count":3,"open_issues_count":2,"forks_count":2,"subscribers_count":7,"default_branch":"master","last_synced_at":"2025-08-14T18:56:37.018Z","etag":null,"topics":["addin","augusto-proiete","augustoproiete","cake","cake-addin","cake-build","cake-contrib","excel-dna","exceldna","exceldnapack","hacktoberfest","pack"],"latest_commit_sha":null,"homepage":"https://cakebuild.net/extensions/cake-exceldnapack/","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/cake-contrib.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGES.md","contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":"CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null},"funding":{"github":"augustoproiete"}},"created_at":"2020-11-27T17:03:07.000Z","updated_at":"2025-03-20T05:44:29.000Z","dependencies_parsed_at":"2023-02-08T08:15:50.322Z","dependency_job_id":"5f0173af-6b63-4e95-a08d-ccd1f4caba9b","html_url":"https://github.com/cake-contrib/Cake.ExcelDnaPack","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/cake-contrib/Cake.ExcelDnaPack","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cake-contrib%2FCake.ExcelDnaPack","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cake-contrib%2FCake.ExcelDnaPack/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cake-contrib%2FCake.ExcelDnaPack/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cake-contrib%2FCake.ExcelDnaPack/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cake-contrib","download_url":"https://codeload.github.com/cake-contrib/Cake.ExcelDnaPack/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cake-contrib%2FCake.ExcelDnaPack/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":273842868,"owners_count":25177921,"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-09-05T02:00:09.113Z","response_time":402,"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":["addin","augusto-proiete","augustoproiete","cake","cake-addin","cake-build","cake-contrib","excel-dna","exceldna","exceldnapack","hacktoberfest","pack"],"created_at":"2024-12-12T23:15:49.108Z","updated_at":"2025-09-06T00:44:22.032Z","avatar_url":"https://github.com/cake-contrib.png","language":"C#","funding_links":["https://github.com/sponsors/augustoproiete"],"categories":[],"sub_categories":[],"readme":"| README.md |\n|:---|\n\n\u003cdiv align=\"center\"\u003e\n\n![Cake.ExcelDnaPack](asset/cake-exceldnapack-logo.png)\n\n\u003c/div\u003e\n\n\u003ch1 align=\"center\"\u003eCake.ExcelDnaPack\u003c/h1\u003e\n\u003cdiv align=\"center\"\u003e\n\nAddin for the [Cake](https://cakebuild.net) build automation system that enables you to use [ExcelDnaPack](https://github.com/augustoproiete/ExcelDnaPack-NuGet) for packing Excel-DNA addins into a single .xll file. Cake.ExcelDnaPack targets .NET 6.0 and .NET 7.0, and runs on Windows.\n\n[![NuGet Version](https://img.shields.io/nuget/v/Cake.ExcelDnaPack.svg?color=blue\u0026style=flat-square)](https://www.nuget.org/packages/Cake.ExcelDnaPack/) [![Stack Overflow Cake Build](https://img.shields.io/badge/stack%20overflow-cakebuild-orange.svg?style=flat-square)](http://stackoverflow.com/questions/tagged/cakebuild) [![Stack Overflow Excel-DNA](https://img.shields.io/badge/stack%20overflow-excel--dna-orange.svg?style=flat-square)](http://stackoverflow.com/questions/tagged/excel-dna)\n\n\u003c/div\u003e\n\n## Give a Star! :star:\n\nIf you like or are using this project please give it a star. Thanks!\n\n## Getting started :rocket:\n\nThis addin exposes the functionality of [ExcelDnaPack](https://github.com/augustoproiete/ExcelDnaPack-NuGet) to the Cake DSL by being a very thin wrapper around its command line interface; this means that you can use Cake.ExcelDnaPack in the same way as you would normally use [ExcelDnaPack](https://github.com/augustoproiete/ExcelDnaPack-NuGet#exceldnapack-usage), but with a Cake-friendly interface.\n\nFirst of all, you need make the ExcelDnaPack tool available to your Cake build process by using the [`tool`](http://cakebuild.net/docs/writing-builds/preprocessor-directives#tool-directive) directive:\n\n```csharp\n#tool \"nuget:?package=ExcelDnaPack\u0026version=1.5.1\"\n```\n\n_Make sure the `\u0026version=` attribute references the [latest version of ExcelDnaPack](https://www.nuget.org/packages/ExcelDnaPack/) available on [nuget.org](https://www.nuget.org)_.\n\nThen, you need to load Cake.ExcelDnaPack in your build script by using the [`addin`](http://cakebuild.net/docs/writing-builds/preprocessor-directives#add-in-directive) directive:\n\n```csharp\n#addin \"nuget:?package=Cake.ExcelDnaPack\u0026version=3.0.0\"\n```\n\n_Make sure the `\u0026version=` attribute references the [latest version of Cake.ExcelDnaPack](https://www.nuget.org/packages/Cake.ExcelDnaPack/) compatible with the Cake runner that you are using. Check the [compatibility table](#compatibility) to see which version of Cake.ExcelDnaPack to choose__.\n\nFinally, call `ExcelDnaPack()` in order to pack all the files that compose your Excel-DNA addin into a single file:\n\n```csharp\n#tool \"nuget:?package=ExcelDnaPack\u0026version=1.5.1\"\n#addin \"nuget:?package=Cake.ExcelDnaPack\u0026version=3.0.0\"\n\nTask(\"Example\")\n    .Does(context =\u003e\n{\n    ExcelDnaPack(\"MyAddin.dna\");\n});\n\nRunTarget(\"Example\");\n```\n\n## ExcelDnaPack settings you can customize\n\n| Property              | Type            | Description                                                                       |\n| --------------------- | --------------- | --------------------------------------------------------------------------------- |\n| DnaFilePath           | [`FilePath`][1] | The path to the primary .dna file for the Excel-DNA add-in. e.g. `MyAddin.dna`    |\n| PromptBeforeOverwrite | `bool?`         | Enable interactive prompt to overwrite the output .xll file, if it already exists |\n| NoCompression         | `bool?`         | Disable compression (LZMA) of resources                                           |\n| NoMultiThreading      | `bool?`         | Disable multi-threading to ensure deterministic order of packing                  |\n| OutputXllFilePath     | [`FilePath`][1] | The output path for the packed .xll file                                          |\n\n[1]: https://cakebuild.net/api/Cake.Core.IO/FilePath/ \"Cake.Core.IO.FilePath\"\n\nBy default, the `ExcelDnaPack` tool prompts the user before overwriting an existing `.xll` output file unless the `/Y` argument is specified. Because `Cake.ExcelDnaPack` is designed to be used in build scenarios (usually non-interactive) it sets `/Y` by default, to overwrite the output `.xll` file if it already exists, in order to suppress the interactive prompt. To change this behavior set `PromptBeforeOverwrite` to `true`.\n\nFor more details on how `ExcelDnaPack` works,  check its [documentation](https://github.com/augustoproiete/ExcelDnaPack-NuGet#usage).\n\n### Using Cake.ExcelDnaPack with custom settings\n\nYou can define your settings using an instance of `ExcelDnaPackSettings`, for example:\n\n```csharp\nvar settings = new ExcelDnaPackSettings\n{\n    DnaFilePath = @\"C:\\MyProject\\MyAddin.dna\",\n    PromptBeforeOverwrite = true,\n    NoCompression = true,\n    NoMultiThreading = true,\n    OutputXllFilePath = @\"C:\\MyProject\\MyAddin-SingleFile.xll\",\n};\n\nExcelDnaPack(settings);\n```\n\nAlternatively, you can define your settings using Cake's configurator pattern:\n\n```csharp\nExcelDnaPack(@\"C:\\MyProject\\MyAddin.dna\", settings =\u003e settings\n    .PromptBeforeOverwrite()\n    .NoCompression()\n    .NoMultiThreading()\n    .SetOutputXllFilePath(@\"C:\\MyProject\\MyAddin-SingleFile.xll\")\n);\n```\n\n## Compatibility\n\nCake.ExcelDnaPack is compatible with all [Cake runners](https://cakebuild.net/docs/running-builds/runners/), and below you can find which version of Cake.ExcelDnaPack you should use based on the version of the Cake runner you're using.\n\n| Cake runner     | Cake.ExcelDnaPack | Cake addin directive                                      |\n|:---------------:|:-----------------:| --------------------------------------------------------- |\n| 3.0.0 or higher | 3.0.0 or higher   | `#addin \"nuget:?package=Cake.ExcelDnaPack\u0026version=3.0.0\"` |\n| 2.0.0 - 2.3.0   | 2.0.0             | `#addin \"nuget:?package=Cake.ExcelDnaPack\u0026version=2.0.0\"` |\n| 1.0.0 - 1.3.0   | 1.0.0 - 1.0.1     | `#addin \"nuget:?package=Cake.ExcelDnaPack\u0026version=1.0.1\"` |\n| 0.33.0 - 0.38.5 | 0.1.0             | `#addin \"nuget:?package=Cake.ExcelDnaPack\u0026version=0.1.0\"` |\n| \u003c 0.33.0        | _N/A_             | _(not supported)_                                         |\n\n## Discussion\n\nFor questions and to discuss ideas \u0026 feature requests, use the [GitHub discussions on the Cake GitHub repository](https://github.com/cake-build/cake/discussions), under the [Extension Q\u0026A](https://github.com/cake-build/cake/discussions/categories/extension-q-a) category.\n\n[![Join in the discussion on the Cake repository](https://img.shields.io/badge/GitHub-Discussions-green?logo=github)](https://github.com/cake-build/cake/discussions)\n\n## Release History\n\nClick on the [Releases](https://github.com/cake-contrib/Cake.ExcelDnaPack/releases) tab on GitHub.\n\n---\n\n_Copyright \u0026copy; 2021-2023 C. Augusto Proiete \u0026 Contributors - Provided under the [MIT License](LICENSE)._\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcake-contrib%2Fcake.exceldnapack","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcake-contrib%2Fcake.exceldnapack","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcake-contrib%2Fcake.exceldnapack/lists"}