{"id":13706297,"url":"https://github.com/editorconfig/editorconfig-core-net","last_synced_at":"2025-10-04T05:12:30.373Z","repository":{"id":23864507,"uuid":"27242903","full_name":"editorconfig/editorconfig-core-net","owner":"editorconfig","description":"EditorConfig Core library and command line utility written in C# for .NET/Mono  http://editorconfig.org","archived":false,"fork":false,"pushed_at":"2025-06-09T13:08:13.000Z","size":457,"stargazers_count":86,"open_issues_count":5,"forks_count":38,"subscribers_count":11,"default_branch":"master","last_synced_at":"2025-08-30T23:36:44.721Z","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/editorconfig.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2014-11-27T22:07:23.000Z","updated_at":"2025-08-26T23:04:25.000Z","dependencies_parsed_at":"2025-05-19T04:00:17.179Z","dependency_job_id":null,"html_url":"https://github.com/editorconfig/editorconfig-core-net","commit_stats":{"total_commits":70,"total_committers":9,"mean_commits":7.777777777777778,"dds":"0.48571428571428577","last_synced_commit":"36595c872990ed73ce47f9cfec95ee79719910d6"},"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/editorconfig/editorconfig-core-net","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/editorconfig%2Feditorconfig-core-net","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/editorconfig%2Feditorconfig-core-net/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/editorconfig%2Feditorconfig-core-net/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/editorconfig%2Feditorconfig-core-net/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/editorconfig","download_url":"https://codeload.github.com/editorconfig/editorconfig-core-net/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/editorconfig%2Feditorconfig-core-net/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278266896,"owners_count":25958733,"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-04T02:00:05.491Z","response_time":63,"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":"2024-08-02T22:00:53.911Z","updated_at":"2025-10-04T05:12:30.351Z","avatar_url":"https://github.com/editorconfig.png","language":"C#","funding_links":[],"categories":["C# #"],"sub_categories":[],"readme":"# EditorConfig .NET Core\n\nThe EditorConfig .NET core provides the same functionality as the\n[EditorConfig C Core][] and [EditorConfig Python Core][].\n\n## Installation\n\nThe library exists on nuget as: \n\n```\nnuget install editorconfig\n```\n\nThe .NET core tool exists under:\n\n```\ndotnet tool install editorconfig-tool\n```\n\n\n## Usage\n\nUsage as a library:\n\n```csharp\nvar parser = new EditorConfigParser();\nvar configuration = parser.Parse(fileName);\nforeach (var kv in configuration.Properties)\n{\n    Console.WriteLine(\"{0}={1}\", kv.Key, kv.Value);\n}\n```\n\nUsage as a command line tool:\n\nYou can omit `dotnet` if you install this as a global tool\n\n```\n\u003e dotnet editorconfig\n\n    Usage: editorconfig [OPTIONS] FILEPATH1 [FILEPATH2 FILEPATH3 ...]\n\n    EditorConfig .NET Core Version 0.12\n\n    FILEPATH can be a hyphen (-) if you want path(s) to be read from stdin.\n\n    Options:\n\n        -h, --help     output usage information\n        -V, --version  output the version number\n        -f \u003cpath\u003e      Specify conf filename other than \".editorconfig\"\n        -b \u003cversion\u003e   Specify version (used by devs to test compatibility)\n```\n\nExample:\n\n    \u003e dotnet editorconfig C:\\Users\\zoidberg\\Documents\\anatomy.md\n    charset=utf-8\n    insert_final_newline=true\n    end_of_line=lf\n    tab_width=8\n    trim_trailing_whitespace=sometimes\n\n\n## Development\n\nClone this repos and init the test submodule\n```\ngit clone git@github.com:editorconfig/editorconfig-core-net.git\ngit submodule init\ngit submodule update\n```\n\nbuilding in visual studio should just work (tm)\n\nBuilding on the command line (will run all the unit tests too)\n\n```\nbuild\n```\n\nRelease builds can be made using\n\n```\nbuild release X.X.X\n```\n\n# Testing\n\nWe have several NUnit tests that you can run from visual studio or the build scripts. \n\nIf you want to run the official editorconfig tests you'll need to install [CMAKE](http://www.cmake.org) and call\n\n```\ncmake .\n``` \n\nin the root of this repository once.\n\nAfter which you can simply call \n\n```\nctest .\n```\n\nTo run the official editorconfig tests located in `/tests` right now we pass all but one related to utf-8 which fails \nwhen run from `ctest .` but when I run it directly from the commandline it succeeds.\n\n[EditorConfig C Core]: https://github.com/editorconfig/editorconfig-core\n[EditorConfig Python Core]: https://github.com/editorconfig/editorconfig-core-py\n[cmake]: http://www.cmake.org\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feditorconfig%2Feditorconfig-core-net","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Feditorconfig%2Feditorconfig-core-net","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feditorconfig%2Feditorconfig-core-net/lists"}