Kehlet.SourceGenerator.Build 1.0.0

dotnet add package Kehlet.SourceGenerator.Build --version 1.0.0
                    
NuGet\Install-Package Kehlet.SourceGenerator.Build -Version 1.0.0
                    
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="Kehlet.SourceGenerator.Build" Version="1.0.0">
  <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="Kehlet.SourceGenerator.Build" Version="1.0.0" />
                    
Directory.Packages.props
<PackageReference Include="Kehlet.SourceGenerator.Build">
  <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 Kehlet.SourceGenerator.Build --version 1.0.0
                    
#r "nuget: Kehlet.SourceGenerator.Build, 1.0.0"
                    
#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 Kehlet.SourceGenerator.Build@1.0.0
                    
#: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=Kehlet.SourceGenerator.Build&version=1.0.0
                    
Install as a Cake Addin
#tool nuget:?package=Kehlet.SourceGenerator.Build&version=1.0.0
                    
Install as a Cake Tool

Reasonable defaults for C# Source Generator projects. Includes a AvoidCycleErrorOnSelfReference property as a work-around for cyclic dependencies.

props:

<Project>
    <PropertyGroup>
        <IsPackable>true</IsPackable>
        <Nullable>enable</Nullable>
        <IncludeBuildOutput>false</IncludeBuildOutput>
        <ImplicitUsings>true</ImplicitUsings>
        <NoWarn>$(NoWarn);NU5128</NoWarn>
        <TreatWarningsAsErrors>true</TreatWarningsAsErrors>
        <EnforceExtendedAnalyzerRules>true</EnforceExtendedAnalyzerRules>
        <IsRoslynComponent>true</IsRoslynComponent>
        <DevelopmentDependency>true</DevelopmentDependency>
    </PropertyGroup>

    <ItemGroup>
        <None Include="$(OutputPath)\$(AssemblyName).dll" Pack="true" PackagePath="analyzers/dotnet/cs" Visible="false" />
    </ItemGroup>
</Project>

targets:

<Project>
    <Choose>
        <When Condition="$(AvoidCycleErrorOnSelfReference) == 'true'">
            <PropertyGroup>
                <PackageId Condition="'$(PackageId)' == ''">$(MSBuildProjectName)</PackageId>
                <PackageIdTemp>$(PackageId)</PackageIdTemp>
                <PackageId>$(PackageId)_temp</PackageId>
            </PropertyGroup>
        </When>
    </Choose>

    <Target Name="_UpdatePackageId" BeforeTargets="$(PackDependsOn)" Condition="$(AvoidCycleErrorOnSelfReference) == 'true'">
        <PropertyGroup>
            <PackageId>$(PackageIdTemp)</PackageId>
        </PropertyGroup>
    </Target>
</Project>
There are no supported framework assets in this package.

Learn more about Target Frameworks and .NET Standard.

  • .NETStandard 2.0

    • No dependencies.

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.0 609 2/21/2025