{"id":21683398,"url":"https://github.com/stonestepsinc/expat-nuget","last_synced_at":"2026-02-10T20:03:45.970Z","repository":{"id":62760586,"uuid":"562277502","full_name":"StoneStepsInc/expat-nuget","owner":"StoneStepsInc","description":"Expat is a stream-oriented XML parser.","archived":false,"fork":false,"pushed_at":"2025-05-03T19:51:29.000Z","size":35,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-05-03T20:28:59.221Z","etag":null,"topics":["expat","library","nuget","nuget-package","parser","static-library","xml","xml-parser"],"latest_commit_sha":null,"homepage":"","language":"C++","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/StoneStepsInc.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":"2022-11-05T20:53:05.000Z","updated_at":"2025-05-03T19:51:32.000Z","dependencies_parsed_at":"2022-11-06T00:15:18.078Z","dependency_job_id":"5e3311b5-76cb-408d-848a-e0f5e71d7cba","html_url":"https://github.com/StoneStepsInc/expat-nuget","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/StoneStepsInc/expat-nuget","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/StoneStepsInc%2Fexpat-nuget","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/StoneStepsInc%2Fexpat-nuget/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/StoneStepsInc%2Fexpat-nuget/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/StoneStepsInc%2Fexpat-nuget/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/StoneStepsInc","download_url":"https://codeload.github.com/StoneStepsInc/expat-nuget/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/StoneStepsInc%2Fexpat-nuget/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265705417,"owners_count":23814446,"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":["expat","library","nuget","nuget-package","parser","static-library","xml","xml-parser"],"created_at":"2024-11-25T16:11:47.722Z","updated_at":"2026-02-10T20:03:45.934Z","avatar_url":"https://github.com/StoneStepsInc.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Expat Nuget Package\r\n\r\nThis project builds an Expat Nuget package with static Expat\r\nlibraries and header files  for the `x64` platform, built\r\nwith Visual C++ 2022, against Debug/Release MT/DLL MSVC CRT.\r\n\r\nVisit Expat website for additional information about the Expat\r\nproject and library documentation:\r\n\r\nhttps://github.com/libexpat/libexpat\r\n\r\n## Package Configuration\r\n\r\nThe Expat static libraries from this package will appear within\r\nthe installation target project after the package is installed.\r\nThe solution may need to be reloaded to make libraries visible.\r\nBoth, debug and release libraries will be listed in the project,\r\nbut only the one appropriate for the currently selected\r\nconfiguration will be included in the build. These libraries\r\nmay be moved into solution folders after the installation (e.g.\r\n`lib/Debug` and `lib/Release`).\r\n\r\nNote that the Expat library path in this package will be selected\r\nas `Debug` or `Release` based on whether the selected configuration\r\nis designated as a development or as a release configuration via\r\nthe standard Visual Studio property called `UseDebugLibraries`.\r\nAdditional configurations copied from the standard ones will\r\ninherit this property. \r\n\r\nDo not install this package if your projects use debug configurations\r\nwithout `UseDebugLibraries`. Note that CMake-generated Visual Studio\r\nprojects will not emit this property.\r\n\r\nExpat libraries in this package are built with narrow character\r\nsupport only and cannot parse XML documents maintained as wide\r\ncharacter strings.\r\n\r\nSee `StoneSteps.Expat.VS2022.Static.props` and\r\n`StoneSteps.Expat.VS2022.Static.targets`\r\nfor specific package configuration details and file locations.\r\n\r\n## Building a Nuget Package\r\n\r\nThis project can build a Nuget package for Expat either locally\r\nor via a GitHub workflow. In each case, following steps are taken.\r\n\r\n  * Expat source archive is downloaded from Expat's website and\r\n    its SHA-256 signature is verified.\r\n\r\n  * VS2022 Community Edition is used to build Expat libraries\r\n    locally and Enterprise Edition to build libraries on GitHub.\r\n\r\n  * Build artifacts for all platforms and configurations are\r\n    collected in staging directories under `nuget/build/native/lib`.\r\n\r\n  * `nuget.exe` is used to package staged files with the first\r\n    three version components used as an Expat version and the last\r\n    version component used as a package revision. See _Package\r\n    Version_ section for more details.\r\n\r\n  * The Nuget package built on GitHub is uploaded to [nuget.org][].\r\n    The package built locally is saved in the root project\r\n    directory.\r\n\r\n## Package Version\r\n\r\n### Package Revision\r\n\r\nNuget packages lack package revision and in order to repackage\r\nthe same upstream software version, such as Expat v2.5.0, the\r\n4th component of the Nuget version is used to track the Nuget\r\npackage revision.\r\n\r\nNuget package revision is injected outside of the Nuget package\r\nconfiguration, during the package build process, and is not present\r\nin the package specification file.\r\n\r\nSpecifically, `nuget.exe` is invoked with `-Version=0.6.24.123`\r\nto build a package with the revision `123`.\r\n\r\n### Version Locations\r\n\r\nExpat version is located in a few places in this repository and\r\nneeds to be changed in all of them for a new version of Expat.\r\n\r\n  * nuget/StoneSteps.Expat.VS2022.Static.nuspec (`version`)\r\n  * devops/make-package.bat (`PKG_VER`, `PKG_REV`, `EXPAT_FNAME`,\r\n    `EXPAT_RNAME`, `EXPAT_SHA256`)\r\n  * .github/workflows/build-nuget-package.yml (`name`, `PKG_VER`,\r\n    `PKG_REV`, `EXPAT_FNAME`, `EXPAT_RNAME`, `EXPAT_SHA256`)\r\n\r\n`EXPAT_SHA256` ia a SHA-256 checksum of the Expat package file and\r\nneeds to be changed when a new version of Expat is released.\r\n\r\nIn the GitHub workflow YAML, `PKG_REV` must be reset to `1` (one)\r\nevery time Expat version is changed. The workflow file must be\r\nrenamed with the new version in the name. This is necessary because\r\nGitHub maintains build numbers per workflow file name.\r\n\r\nFor local builds package revision is supplied on the command line\r\nand should be specified as `1` (one) for a new version of Expat.\r\n\r\n### GitHub Build Number\r\n\r\nBuild number within the GitHub workflow YAML is maintained in an\r\nunconventional way because of the lack of build maturity management\r\nbetween GitHub and Nuget.\r\n\r\nFor example, using build management systems, such as Artifactory,\r\nevery build would generate a Nuget package with the same version\r\nand package revision for the upcoming release and build numbers\r\nwould be tracked within the build management system. A build that\r\nwas successfully tested would be promoted to the production Nuget\r\nrepository without generating a new build.\r\n\r\nWithout a build management system, the GitHub workflow in this\r\nrepository uses the pre-release version as a surrogate build\r\nnumber for builds that do not publish packages to nuget.org,\r\nso these builds can be downloaded and tested before the final\r\nbuild is made and published to nuget.org. This approach is not\r\nrecommended for robust production environments because even\r\nthough the final published package is built from the exact\r\nsame source, the build process may still potentially introduce \r\nsome unknowns into the final package (e.g. build VM was updated).\r\n\r\n## Building Package Locally\r\n\r\nYou can build a Nuget package locally with `make-package.bat`\r\nlocated in `devops`. This script expects VS2022 Community Edition\r\ninstalled in the default location. If you have other edition of\r\nVisual Studio, edit the file to use the correct path to the\r\n`vcvarsall.bat` file.\r\n\r\nRun `make-package.bat` from the repository root directory with a\r\npackage revision as the first argument. There is no provision to\r\nmanage build numbers from the command line and other tools should\r\nbe used for this (e.g. Artifactory).\r\n\r\n## Sample Application\r\n\r\nA Visual Studio project is included in this repository under\r\n`sample-expat` to test the Nuget package built by this project.\r\nThis application prints elements and their attributes of a\r\nhard-coded XML string.\r\n\r\nIn order to build `sample-expat.exe`, open Nuget Package manager\r\nin the solution and install either the locally-built Nuget package\r\nor the one from [nuget.org][].\r\n\r\n[nuget.org]: https://www.nuget.org/packages/StoneSteps.Expat.VS2022.Static/\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstonestepsinc%2Fexpat-nuget","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstonestepsinc%2Fexpat-nuget","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstonestepsinc%2Fexpat-nuget/lists"}