![]() |
VOOZH | about |
dotnet add package CSharp.SourceGenerators.Extensions --version 0.0.15
NuGet\Install-Package CSharp.SourceGenerators.Extensions -Version 0.0.15
<PackageReference Include="CSharp.SourceGenerators.Extensions" Version="0.0.15" />
<PackageVersion Include="CSharp.SourceGenerators.Extensions" Version="0.0.15" />Directory.Packages.props
<PackageReference Include="CSharp.SourceGenerators.Extensions" />Project file
paket add CSharp.SourceGenerators.Extensions --version 0.0.15
#r "nuget: CSharp.SourceGenerators.Extensions, 0.0.15"
#:package CSharp.SourceGenerators.Extensions@0.0.15
#addin nuget:?package=CSharp.SourceGenerators.Extensions&version=0.0.15Install as a Cake Addin
#tool nuget:?package=CSharp.SourceGenerators.Extensions&version=0.0.15Install as a Cake Tool
This package provides an Execute extension method on a ISourceGenerator which can be directly called in a Unit Test.
[Fact]
public void GenerateFiles_For1Class_Should_GenerateCorrectFiles()
{
// Arrange
var path = "./DTO/User.cs";
var sourceFile = new SourceFile
{
Path = path,
Text = File.ReadAllText(path),
AttributeToAddToClass = "FluentBuilder.AutoGenerateBuilder"
};
// Act
var result = _sut.Execute(new[] { sourceFile });
// Assert
result.Valid.Should().BeTrue();
result.Files.Should().HaveCount(3);
var builder = result.Files[2];
builder.Path.Should().EndWith("FluentBuilderGeneratorTests.DTO.User_Builder.g.cs");
builder.Text.Should().NotBeNullOrEmpty();
}
Entity Framework Extensions and Dapper Plus are major sponsors and proud to contribute to the development of CSharp.SourceGenerators.Extensions.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net5.0 net5.0 was computed. net5.0-windows net5.0-windows was computed. net6.0 net6.0 was computed. net6.0-android net6.0-android was computed. net6.0-ios net6.0-ios was computed. net6.0-maccatalyst net6.0-maccatalyst was computed. net6.0-macos net6.0-macos was computed. net6.0-tvos net6.0-tvos was computed. net6.0-windows net6.0-windows was computed. net7.0 net7.0 was computed. net7.0-android net7.0-android was computed. net7.0-ios net7.0-ios was computed. net7.0-maccatalyst net7.0-maccatalyst was computed. net7.0-macos net7.0-macos was computed. net7.0-tvos net7.0-tvos was computed. net7.0-windows net7.0-windows was computed. net8.0 net8.0 was computed. net8.0-android net8.0-android was computed. net8.0-browser net8.0-browser was computed. net8.0-ios net8.0-ios was computed. net8.0-maccatalyst net8.0-maccatalyst was computed. net8.0-macos net8.0-macos was computed. net8.0-tvos net8.0-tvos was computed. net8.0-windows net8.0-windows was computed. net9.0 net9.0 was computed. net9.0-android net9.0-android was computed. net9.0-browser net9.0-browser was computed. net9.0-ios net9.0-ios was computed. net9.0-maccatalyst net9.0-maccatalyst was computed. net9.0-macos net9.0-macos was computed. net9.0-tvos net9.0-tvos was computed. net9.0-windows net9.0-windows was computed. net10.0 net10.0 was computed. net10.0-android net10.0-android was computed. net10.0-browser net10.0-browser was computed. net10.0-ios net10.0-ios was computed. net10.0-maccatalyst net10.0-maccatalyst was computed. net10.0-macos net10.0-macos was computed. net10.0-tvos net10.0-tvos was computed. net10.0-windows net10.0-windows was computed. |
| .NET Core | netcoreapp3.0 netcoreapp3.0 was computed. netcoreapp3.1 netcoreapp3.1 was computed. |
| .NET Standard | netstandard2.1 netstandard2.1 is compatible. |
| MonoAndroid | monoandroid monoandroid was computed. |
| MonoMac | monomac monomac was computed. |
| MonoTouch | monotouch monotouch was computed. |
| Tizen | tizen60 tizen60 was computed. |
| Xamarin.iOS | xamarinios xamarinios was computed. |
| Xamarin.Mac | xamarinmac xamarinmac was computed. |
| Xamarin.TVOS | xamarintvos xamarintvos was computed. |
| Xamarin.WatchOS | xamarinwatchos xamarinwatchos was computed. |
This package is not used by any NuGet packages.
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 0.0.15 | 354 | 8/31/2025 |
| 0.0.14 | 261 | 8/24/2025 |
| 0.0.13 | 214 | 8/23/2025 |
| 0.0.12.1 | 420 | 6/13/2025 |
| 0.0.12 | 443 | 10/19/2024 |
| 0.0.12-preview-02 | 201 | 10/18/2024 |
| 0.0.12-preview-01 | 165 | 10/7/2024 |
| 0.0.11 | 756 | 1/15/2023 |
| 0.0.9 | 647 | 6/12/2022 |
| 0.0.8 | 611 | 5/6/2022 |
| 0.0.7 | 628 | 2/18/2022 |
| 0.0.6 | 471 | 1/13/2022 |
| 0.0.5 | 535 | 8/10/2021 |
| 0.0.4 | 496 | 8/8/2021 |
| 0.0.3 | 590 | 8/7/2021 |
| 0.0.2 | 465 | 8/6/2021 |
| 0.0.1 | 478 | 8/6/2021 |