Syntixi 1.0.18
dotnet add package Syntixi --version 1.0.18
NuGet\Install-Package Syntixi -Version 1.0.18
<PackageReference Include="Syntixi" Version="1.0.18"> <PrivateAssets>all</PrivateAssets> <IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets> </PackageReference>
paket add Syntixi --version 1.0.18
#r "nuget: Syntixi, 1.0.18"
// Install Syntixi as a Cake Addin #addin nuget:?package=Syntixi&version=1.0.18 // Install Syntixi as a Cake Tool #tool nuget:?package=Syntixi&version=1.0.18
Syntixi Attributes
Syntixi Attributes is to enable the embedding of the Syncfusion license key into your code. This is just the package that contains the attributes. The actual generation implementation is in the Syntixi.SourceGenerator package.
Getting Started
To get started with Syntixi Attributes, you'll first need to add the library to your project.
Installation
If you're using NuGet Package Manager, you can install Syntixi Attributes by running the following command in your package manager console:
Install-Package Syntixi
This will add the attributes package and the source generator package as development dependencies.
Usage
To use Syntixi Attributes, you'll need to add the EmbedSyncfusionLicenseKey
attribute to your class. This will embed SYNCFUSION_LICENSE_KEY
into your code. This is an example using WPF.
/// <summary>
/// WPF Application entry point.
/// </summary>
[Syntixi.Attributes.EmbedSyncfusionLicenseKey]
public partial class App : Application
{
/// <summary>
/// Initializes a new instance of the <see cref="App"/> class.
/// </summary>
public App()
{
Syncfusion.Licensing.SyncfusionLicenseProvider.RegisterLicense(SYNCFUSION_LICENSE_KEY);
}
}
You then need to add the license key to your CI/CD pipeline or your local environment variables. If you are working in a local environment you may need to restart the IDE or codespace in order for the change to be picked up.
Contributing or Issues
Contributions and feedback to Syntixi are welcome! Take a look at https://github.com/dpvreony/syntixi/
License
Syntixi Attributes is released under the MIT License. See the LICENSE file in the package for more information.
Learn more about Target Frameworks and .NET Standard.
-
.NETStandard 2.0
- Syntixi.Attributes (>= 1.0.18)
- Syntixi.SourceGenerator (>= 1.0.18)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated |
---|---|---|
1.0.18 | 111 | 6/21/2024 |