{"id":26415716,"url":"https://github.com/bluegrams/settingsproviders","last_synced_at":"2025-03-18T00:54:36.993Z","repository":{"id":33965306,"uuid":"164221692","full_name":"Bluegrams/SettingsProviders","owner":"Bluegrams","description":"PortableSettingsProvider and PortableJsonSettingsProvider for .NET","archived":false,"fork":false,"pushed_at":"2023-07-01T21:41:16.000Z","size":28,"stargazers_count":44,"open_issues_count":4,"forks_count":5,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-03-06T10:55:46.336Z","etag":null,"topics":["csharp","dotnet","json","portable","settings","settings-portable","winforms","wpf"],"latest_commit_sha":null,"homepage":"https://www.codeproject.com/Articles/1238550/Making-Application-Settings-Portable","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Bluegrams.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":"2019-01-05T14:23:51.000Z","updated_at":"2025-02-05T06:14:32.000Z","dependencies_parsed_at":"2022-09-14T15:11:03.246Z","dependency_job_id":null,"html_url":"https://github.com/Bluegrams/SettingsProviders","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Bluegrams%2FSettingsProviders","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Bluegrams%2FSettingsProviders/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Bluegrams%2FSettingsProviders/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Bluegrams%2FSettingsProviders/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Bluegrams","download_url":"https://codeload.github.com/Bluegrams/SettingsProviders/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244135898,"owners_count":20403797,"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":["csharp","dotnet","json","portable","settings","settings-portable","winforms","wpf"],"created_at":"2025-03-18T00:54:36.371Z","updated_at":"2025-03-18T00:54:36.977Z","avatar_url":"https://github.com/Bluegrams.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# SettingsProviders\n\nThis repository provides two custom implementations of the `SettingsProvider` class in the .NET Framework application settings architecture.\nThey can be used to make the built-in application of WinForms and WPF application settings portable and more configurable:\n\n* **PortableSettingsProvider** saves app settings in an XML format similar to the built-in settings provider\n* **PortableJsonSettingsProvider** saves app settings in JSON format, powered by Newtonsoft.Json\n\n### Features\n\n* Make application settings portable together with the app\n* Configure the location and name of the settings file\n* Easily plug into existing apps (just one line needed to make existing app settings portable)\n\n## Usage\n\n_Note:_ Change all occurrences of `PortableSettingsProvider` to `PortableJsonSettingsProvider` to use the JSON version.\n\n1. Install the nuget package:  \n\t[`Install-Package PortableSettingsProvider`](https://www.nuget.org/packages/PortableSettingsProvider) or  \n\t[`Install-Package PortableJsonSettingsProvider`](https://www.nuget.org/packages/PortableJsonSettingsProvider)\n2. Apply the provider to your settings:\n\t```\n\tPortableSettingsProvider.ApplyProvider(Properties.Settings.Default);\n\t```\n\tMake sure to adjust the name of the settings instance if it is not the default settings.  \n\tFor an alternative approach, see [here](https://www.codeproject.com/Articles/1238550/Making-Application-Settings-Portable).\n3. Optionally, you can set a different name and location for the settings file. \n\tA full configuration for a WinForms application might look like this:\n\t\n```csharp\nstatic void Main()\n{\n\tPortableSettingsProvider.SettingsFileName = \"settings.config\";\n\tPortableSettingsProvider.SettingsDirectory = \"Some\\\\custom\\\\location\";\n\tPortableSettingsProvider.ApplyProvider(Properties.Settings.Default);\n\tApplication.Run(new Form1());\n}\n```\n\n## More\n\nFor a detailed explanation of the implementation and more options,\nvisit the [related CodeProject article](https://www.codeproject.com/Articles/1238550/Making-Application-Settings-Portable).\nThe article also explains the difference between _roamed_ and _local_ settings as the settings providers support both.\n\n## License\n\n[BSD-3-Clause](LICENSE) License.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbluegrams%2Fsettingsproviders","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbluegrams%2Fsettingsproviders","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbluegrams%2Fsettingsproviders/lists"}