{"id":25170087,"url":"https://github.com/codaxy/xsd2","last_synced_at":"2026-03-07T20:31:59.880Z","repository":{"id":45082379,"uuid":"9735333","full_name":"codaxy/xsd2","owner":"codaxy","description":"Improved version of xsd.exe","archived":false,"fork":false,"pushed_at":"2022-01-10T07:20:39.000Z","size":332,"stargazers_count":36,"open_issues_count":4,"forks_count":24,"subscribers_count":15,"default_branch":"master","last_synced_at":"2025-11-18T14:35:06.761Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/codaxy.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2013-04-28T19:55:20.000Z","updated_at":"2025-09-30T17:10:31.000Z","dependencies_parsed_at":"2022-09-22T17:00:31.677Z","dependency_job_id":null,"html_url":"https://github.com/codaxy/xsd2","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/codaxy/xsd2","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codaxy%2Fxsd2","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codaxy%2Fxsd2/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codaxy%2Fxsd2/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codaxy%2Fxsd2/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/codaxy","download_url":"https://codeload.github.com/codaxy/xsd2/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codaxy%2Fxsd2/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30229743,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-07T19:01:10.287Z","status":"ssl_error","status_checked_at":"2026-03-07T18:59:58.103Z","response_time":53,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":[],"created_at":"2025-02-09T08:38:33.310Z","updated_at":"2026-03-07T20:31:59.834Z","avatar_url":"https://github.com/codaxy.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n# xsd2\n\n\nImproved version of xsd.exe.\n\nThis version enables:\n\n* List based collections in generated types\n* Auto-capitalization of properties\n* Nullable attribute types\n* Removal of DebuggerStepThrough attribute\n\n## Usage:\n### Command line:\nxsd2.exe \u0026lt;schema file\u0026gt; [/o:\u0026lt;output-directory\u0026gt;] [/ns:\u0026lt;namespace\u0026gt;] /all\n\n### Example running for embedding in your CSPROJ (C# project):\n\n```xml\n  \u003cPropertyGroup\u003e\n    \u003c!-- XsdFilesPath points here to current folder. It can poing for example to external folder, like ..\\..\\sdk\\schema\\ --\u003e\n    \u003cXsdFilesPath\u003e.\\\u003c/XsdFilesPath\u003e\n  \u003c/PropertyGroup\u003e\n\n  \u003cItemGroup\u003e\n    \u003cNone Include=\"$(XsdFilesPath)**\\*.xsd\" /\u003e\n  \u003c/ItemGroup\u003e\n  \u003cItemGroup\u003e\n    \u003cXSDFile Include=\"$(XsdFilesPath)**\\*.xsd\" /\u003e\n  \u003c/ItemGroup\u003e\n  \u003cItemGroup\u003e\n    \u003c!-- Monitor whether files are changed so the Inputs/Outputs comparision below will re-generate --\u003e\n    \u003cUpToDateCheckInput Include=\"$(XsdFilesPath)**\\*.xsd\" /\u003e\n  \u003c/ItemGroup\u003e\n\n  \u003cItemGroup\u003e\n    \u003cCompile Update=\"*.cs\"\u003e\n      \u003c!-- This will make Visual Studio fold each generated file under its xsd source --\u003e\n      \u003cDependentUpon\u003e$(XsdFilesPath)%(Filename).xsd\u003c/DependentUpon\u003e\n    \u003c/Compile\u003e\n  \u003c/ItemGroup\u003e\n\n  \u003cTarget Name=\"GenerateSerializationClasses\" BeforeTargets=\"BeforeBuild\" Inputs=\"@(XSDFile)\" Outputs=\"@(XSDFile -\u003e '%(Filename).cs')\"\u003e\n    \u003cMessage Importance=\"High\" Text=\"Generating Schema classes: %(XSDFile.Identity)\" /\u003e\n    \u003cExec Command=\"$(Xsd2Exe) %(XSDFile.Identity) /o:$(ProjectDir) /ns:SomeNamespaces.Interfaces.Schema\" /\u003e\n  \u003c/Target\u003e\n\n  \u003cTarget Name=\"CleanGeneratedFiles\" BeforeTargets=\"Clean\"\u003e\n    \u003cItemGroup\u003e\n      \u003c_FilesToDelete Include=\"*.cs\"/\u003e\n    \u003c/ItemGroup\u003e\n    \u003cDelete Files=\"@(_FilesToDelete)\"/\u003e\n  \u003c/Target\u003e\n```\n\n## Notes:\n\n* [PetaTest](http://www.toptensoftware.com/petatest/) framework is used for testing.\n* Original idea http://mikehadlow.blogspot.com/2007/01/writing-your-own-xsdexe.html.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodaxy%2Fxsd2","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcodaxy%2Fxsd2","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodaxy%2Fxsd2/lists"}