Syntixi 1.0.18

dotnet add package Syntixi --version 1.0.18
                    
NuGet\Install-Package Syntixi -Version 1.0.18
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Syntixi" Version="1.0.18">
  <PrivateAssets>all</PrivateAssets>
  <IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
</PackageReference>
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Syntixi" Version="1.0.18" />
                    
Directory.Packages.props
<PackageReference Include="Syntixi">
  <PrivateAssets>all</PrivateAssets>
  <IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
</PackageReference>
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Syntixi --version 1.0.18
                    
#r "nuget: Syntixi, 1.0.18"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Syntixi@1.0.18
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Syntixi&version=1.0.18
                    
Install as a Cake Addin
#tool nuget:?package=Syntixi&version=1.0.18
                    
Install as a Cake Tool

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.

There are no supported framework assets in this package.

Learn more about Target Frameworks and .NET Standard.

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 186 6/21/2024