{"id":25067708,"url":"https://github.com/codingseb/csharpfilesmerger","last_synced_at":"2025-10-09T21:35:11.158Z","repository":{"id":50960162,"uuid":"371118193","full_name":"codingseb/CSharpFilesMerger","owner":"codingseb","description":"A command line utility to merge multiple C# file (*.cs) into one","archived":false,"fork":false,"pushed_at":"2021-06-04T13:28:13.000Z","size":89,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-31T14:59:47.762Z","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/codingseb.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-05-26T17:31:04.000Z","updated_at":"2025-02-23T14:08:02.000Z","dependencies_parsed_at":"2022-09-09T23:41:35.933Z","dependency_job_id":null,"html_url":"https://github.com/codingseb/CSharpFilesMerger","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/codingseb/CSharpFilesMerger","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codingseb%2FCSharpFilesMerger","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codingseb%2FCSharpFilesMerger/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codingseb%2FCSharpFilesMerger/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codingseb%2FCSharpFilesMerger/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/codingseb","download_url":"https://codeload.github.com/codingseb/CSharpFilesMerger/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codingseb%2FCSharpFilesMerger/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279002051,"owners_count":26083286,"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-10-09T02:00:07.460Z","response_time":59,"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":[],"created_at":"2025-02-06T20:58:35.045Z","updated_at":"2025-10-09T21:35:11.125Z","avatar_url":"https://github.com/codingseb.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# CSharpFilesMerger\nA command line utility to merge multiple C# file (*.cs) into one\n\n* Scan a directory or give a list of files\n* Multiple way to manage `using`\n* Merge `partial class` in one class\n* Ignore `*\\obj\\*`, `*\\Properties\\*` and `*\\Merge.cs`\n\n## Parameters\nBy default the application search for *.cs files in the working directory of the application.\\\nYou can specify an other directory as first argument.\\\nIt can be an absolute path or a relative path from working directory.\n\n### Syntax:\n```CSharpFilesMerger [workingDirectory] [OPTIONS]```\n\n### Options:  \n|Option           | Description |\n|-----------------|-------------|\n| `-h, --help`      | Show this help text\u003cbr /\u003e(is exclusive with others options except `-w`)|\n| `-v, --version`   | Show the version of the application\u003cbr /\u003e(is exclusive with others options except `-w`)|\n| `-r, --recursive` | Search for *.cs file recursively from working directory or specified directory.\u003cbr /\u003eDo not work with `-f, --files`|\n| `-f, --files`     | To specify the list of files to merge. Only these files will be merged.\u003cbr /\u003eEach file must be separate by a semicolon \";\". \u003cbr /\u003eEach file can be specify as absolute path or relative to working directory or specified directory.\u003cbr /\u003e\u003cbr /\u003e**Example** : `-f \"a.cs;..\\b.cs;C:\\myDirectory\\c.cs\"`\u003cbr /\u003e\u003cbr /\u003e*Remark : When this option is active files are merged in the order of the list.*|\n| `-o, --out`       | To specify the fileName of the output file where *.cs files are merged.\u003cbr /\u003eCan be specify as absolute path or relative to working directory or specified directory.\u003cbr /\u003e\u003cbr /\u003e**Example** : `-o \"MyOutputFile.cs\"`\u003cbr /\u003e**Example** : `-o \"C:\\myDirectory\\MyOutputFile.cs\"`\u003cbr /\u003e\u003cbr /\u003e**Default value** is equivalent to : `-o \"Merged.cs\"`|\n| `-u, --usings`    | To specify where to put usings (globally vs in namespaces).\u003cbr /\u003eMust be followed by one of these 3 options :\u003cbr /\u003e\u003cbr /\u003e\u003cul\u003e\u003cli\u003e**DoNotMove** : keep the found \"using\" globally if it is defined outside of any namespace or in the specific namespace if found in a namespace.\u003c/li\u003e\u003cli\u003e**Global**    : Force all \"using\" to be defined globally in the merged result.\u003c/li\u003e\u003cli\u003e**Namespace** : Force all \"using\" to be defined in namespaces in the merged result.\u003c/li\u003e\u003c/ul\u003e**Default value** is equivalent to : `-u DoNotMove`\u003cbr /\u003e\u003cbr /\u003e*Remark : All usings are ordered and print only one time by usings location.*|\n| `-s, --start`     | To open the result file at the end.\u003cbr /\u003eBy default try to open the file with the default program for *.cs files.\u003cbr /\u003eAn other program can be optionally specify with the path of the program\u003cbr /\u003e\u003cbr /\u003e**Example** : `-s \"C:\\Program Files\\MyEditor\\MyEditor.exe\"`|\n| `-w, --wait`      | Ask the user to press a key to exit at the end. |\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodingseb%2Fcsharpfilesmerger","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcodingseb%2Fcsharpfilesmerger","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodingseb%2Fcsharpfilesmerger/lists"}