{"id":16318719,"url":"https://github.com/dpvreony/syntixi","last_synced_at":"2026-03-12T23:06:27.060Z","repository":{"id":245497555,"uuid":"813790099","full_name":"dpvreony/syntixi","owner":"dpvreony","description":"Source generator to embed SyncFusion License Key from an environment variable","archived":false,"fork":false,"pushed_at":"2026-03-07T07:49:32.000Z","size":240,"stargazers_count":1,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-03-07T15:00:29.826Z","etag":null,"topics":["roslyn-generator","syncfusion"],"latest_commit_sha":null,"homepage":"","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/dpvreony.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":"citation.cff","codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2024-06-11T18:44:11.000Z","updated_at":"2026-03-07T07:49:34.000Z","dependencies_parsed_at":"2026-01-06T08:02:36.481Z","dependency_job_id":null,"html_url":"https://github.com/dpvreony/syntixi","commit_stats":null,"previous_names":["dpvreony/dovetail"],"tags_count":3,"template":false,"template_full_name":"dpvreony/net-repo-template","purl":"pkg:github/dpvreony/syntixi","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dpvreony%2Fsyntixi","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dpvreony%2Fsyntixi/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dpvreony%2Fsyntixi/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dpvreony%2Fsyntixi/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dpvreony","download_url":"https://codeload.github.com/dpvreony/syntixi/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dpvreony%2Fsyntixi/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30446425,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-12T21:31:01.033Z","status":"ssl_error","status_checked_at":"2026-03-12T21:30:43.161Z","response_time":114,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: 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":["roslyn-generator","syncfusion"],"created_at":"2024-10-10T22:24:24.110Z","updated_at":"2026-03-12T23:06:27.031Z","avatar_url":"https://github.com/dpvreony.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Syntixi\n\n## Mission Statement\n\n* To provide a mechanism to embed Syncfusion license keys into applications as part of the build process.\n\n## Introduction\n\nSyntixi is a Roslyn Source Generator that picks up the license key in a way that:\n* allows the key to not be stored in source control\n* allows the embedding without the direct modification of the source code, again preventing the risk of the key accidentally ending up in source control.\n  * Syncfusion has a couple of batch scripts that can be embedded into your csproj but these do alter the source code and do it a slightly blind fashion.\n\n## Getting Started\n\nYou will need a Syncfusion license key\n\n### 1. Create an application (such as WPF)\n### 2. Add a nuget package reference to \"Syntixi.Attributes\" and \"Syntixi.SourceGenerator\" in your project\n\n```xml\n    \u003cPackageReference Include=\"Syntixi.Attributes\" Version=\"1.0.18\" /\u003e\n    \u003cPackageReference Include=\"Syntixi.SourceGenerator\" Version=\"1.0.18\"\u003e\n      \u003cPrivateAssets\u003eall\u003c/PrivateAssets\u003e\n      \u003cIncludeAssets\u003eruntime; build; native; contentfiles; analyzers; buildtransitive\u003c/IncludeAssets\u003e\n    \u003c/PackageReference\u003e\n```\n\nThis will add an attributes package and the source generator package. NOTE: if you don't include the build assets for the SourceGenerator it will not make the props file available that allows Roslyn to access the SyncFusion environment variable \\ secret.\n\n### 3. Add the following initialisation for the Syncfusion license manager\n\n```cs\n   Syncfusion.Licensing.SyncfusionLicenseProvider.RegisterLicense(SYNCFUSION_LICENSE_KEY);\n```\n\n### 4. Mark the class hosting the logic as partial and add the attribute to the class\n\n```cs\n    /// \u003csummary\u003e\n    /// WPF Application entry point.\n    /// \u003c/summary\u003e\n    [Syntixi.Attributes.EmbedSyncfusionLicenseKey]\n    public partial class App : Application\n    {\n      // YOUR CODE HERE\n    }\n```\n\n### 5. Add the license key to a CI secret or your local environment variables.\n\n???\n\n## longer examples\n\n### Full example that will fail if the license key isn't present\n\nThe source generator is written to set a Diagnostic Error if the attribute is included but the license key isn't present in the environment.\n\n```cs\n    /// \u003csummary\u003e\n    /// WPF Application entry point.\n    /// \u003c/summary\u003e\n    [Syntixi.Attributes.EmbedSyncfusionLicenseKey]\n    public partial class App : Application\n    {\n        /// \u003csummary\u003e\n        /// Initializes a new instance of the \u003csee cref=\"App\"/\u003e class.\n        /// \u003c/summary\u003e\n        public App()\n        {\n            Syncfusion.Licensing.SyncfusionLicenseProvider.RegisterLicense(SYNCFUSION_LICENSE_KEY);\n        }\n    }\n```\n\n### Full example that will not include the Syncfusion license manager if they license key isn't present.\n\nThe source generator has a .props file includes the compiler directive `SYNTIXI_SYNCFUSION_LICENSE_KEY`.\n\n```cs\n    /// \u003csummary\u003e\n    /// WPF Application entry point.\n    /// \u003c/summary\u003e\n#if SYNTIXI_SYNCFUSION_LICENSE_KEY\n    [Syntixi.Attributes.EmbedSyncfusionLicenseKey]\n#endif\n    public partial class App : Application\n    {\n        /// \u003csummary\u003e\n        /// Initializes a new instance of the \u003csee cref=\"App\"/\u003e class.\n        /// \u003c/summary\u003e\n        public App()\n        {\n#if SYNTIXI_SYNCFUSION_LICENSE_KEY\n            Syncfusion.Licensing.SyncfusionLicenseProvider.RegisterLicense(SYNCFUSION_LICENSE_KEY);\n#endif\n        }\n    }\n```\n\n## Viewing the documentation\n\nThe documentation can be found at https://docs.dpvreony.com/projects/syntixi/\n\n## Contributing to the code\n\nSee the [contribution guidelines](CONTRIBUTING.md).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdpvreony%2Fsyntixi","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdpvreony%2Fsyntixi","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdpvreony%2Fsyntixi/lists"}