Syntixi.SourceGenerator 1.0.18

dotnet add package Syntixi.SourceGenerator --version 1.0.18                
NuGet\Install-Package Syntixi.SourceGenerator -Version 1.0.18                
此命令旨在在 Visual Studio 的包管理器控制台中使用,因为它使用 NuGet 模块的 Install-Package 版本。
<PackageReference Include="Syntixi.SourceGenerator" Version="1.0.18">
  <PrivateAssets>all</PrivateAssets>
  <IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
</PackageReference>                
对于支持 PackageReference 的项目,将此 XML 节点复制到项目文件中以引用包。
paket add Syntixi.SourceGenerator --version 1.0.18                
#r "nuget: Syntixi.SourceGenerator, 1.0.18"                
#r 指令可用于 F# Interactive 和多语言笔记本。将其复制到交互式工具或脚本的源代码中,以引用包。
// Install Syntixi.SourceGenerator as a Cake Addin
#addin nuget:?package=Syntixi.SourceGenerator&version=1.0.18

// Install Syntixi.SourceGenerator as a Cake Tool
#tool nuget:?package=Syntixi.SourceGenerator&version=1.0.18                

Syntixi 属性

Syntixi SourceGenerator 用于将 Syncfusion 许可证密钥嵌入到您的代码中。这只是一个包含 Source Generator 的包。在 Syntixi.Attributes 包中有一个触发生成的标记属性。

入门

要开始使用 Syntixi,您首先需要将库添加到您的项目中。

安装

如果您正在使用 NuGet 包管理器,您可以在包管理器控制台中运行以下命令来安装 Syntixi Sourcegenerator

Install-Package Syntixi.SourceGenerator

这将安装源生成器。为了使用它,您需要添加 Syntixi.Attributes 包。或者,您可以只安装 Syntixi 包,让其设置子包。


## 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.

```cs
    /// <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);
        }
    }

然后,您需要将许可证密钥添加到您的 CI/CD 管道或本地环境变量中。如果您在本地环境中工作,您可能需要重新启动 IDE 或代码空间,以便更改被识别。

进一步阅读

请参阅 https://docs.dpvreony.com/projects/syntixi/

贡献或问题

欢迎为 Syntixi 提供贡献和反馈!请查看 https://github.com/dpvreony/syntixi/

许可证

Syntixi Attributes 根据 MIT 许可证发布。有关更多信息,请参阅包中的 LICENSE 文件。

此包中没有受支持的框架资产。

了解有关 目标框架.NET Standard 的更多信息。

NuGet 包 (1)

显示依赖 Syntixi.SourceGenerator 的前 1 个 NuGet 包

下载
Syntixi

Syntixi 是一个用于在构建过程中嵌入 Syncfusion 许可证密钥而无需将其暴露给源代码控制系统的 Roslyn 源代码生成工具包。

GitHub 代码库

此包没有被任何流行的 GitHub 代码库使用。

版本 下载 最后更新
1.0.18 172 6/21/2024