{"id":21924300,"url":"https://github.com/windperson/democodegencs","last_synced_at":"2026-04-28T21:04:51.628Z","repository":{"id":183357239,"uuid":"669808375","full_name":"windperson/DemoCodeGenCS","owner":"windperson","description":"Demo using CodeGenCS to generate custom C# code","archived":false,"fork":false,"pushed_at":"2023-07-24T04:43:58.000Z","size":11,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-01-27T11:12:49.791Z","etag":null,"topics":["code-generation","codegencs","csharp","dotnet"],"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/windperson.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}},"created_at":"2023-07-23T13:52:11.000Z","updated_at":"2023-07-23T22:00:59.000Z","dependencies_parsed_at":"2023-07-24T05:47:44.983Z","dependency_job_id":null,"html_url":"https://github.com/windperson/DemoCodeGenCS","commit_stats":null,"previous_names":["windperson/democodegencs"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/windperson%2FDemoCodeGenCS","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/windperson%2FDemoCodeGenCS/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/windperson%2FDemoCodeGenCS/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/windperson%2FDemoCodeGenCS/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/windperson","download_url":"https://codeload.github.com/windperson/DemoCodeGenCS/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244947019,"owners_count":20536546,"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":["code-generation","codegencs","csharp","dotnet"],"created_at":"2024-11-28T21:14:21.159Z","updated_at":"2026-04-28T21:04:51.622Z","avatar_url":"https://github.com/windperson.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# CodeGenCS Demo\n\nThis is a test repository for using [CodeGenCS](https://github.com/CodegenCS/CodegenCS) to generate a const value class code.\n\n1. Restore [dotnet-codegencs command line](https://github.com/CodegenCS/CodegenCS/blob/master/src/Tools/dotnet-codegencs/README.md):\n    \n    ```\n    dotnet tool restore\n    ```\n2. Run `dotnet-codegencs` command line to generate code as:\n\n    ```\n    dotnet dotnet-codegencs template run .\\ClassLibrary1\\codegen_templates\\GenerateConstTemplate.cs defineConst name=foo1 value=bar1 name=foo2 value=bar2 --File .\\ClassLibrary1\\test.cs\n    ```\n\nSo you would get a file `test.cs` in `ClassLibrary1` project as:\n\n```csharp\n// This file is generated by CodegenCS( https://github.com/CodegenCS/CodegenCS )\nnamespace Generated;\n\n/// \u003csummary\u003e\n/// Auto generated class, do not edit it directly.\n/// \u003c/summary\u003e\npublic static class GeneratedConst\n{\n    public const string foo1 = \"bar1\";\n    public const string foo2 = \"bar2\";\n}\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwindperson%2Fdemocodegencs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwindperson%2Fdemocodegencs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwindperson%2Fdemocodegencs/lists"}