Skip to content

Commit

Permalink
0.7.0
Browse files Browse the repository at this point in the history
  • Loading branch information
StefH committed Sep 20, 2022
1 parent 9495e99 commit dc77634
Show file tree
Hide file tree
Showing 38 changed files with 51 additions and 48 deletions.
2 changes: 1 addition & 1 deletion Generate-ReleaseNotes.bat
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
rem https://github.com/StefH/GitHubReleaseNotes

SET version=0.6.0
SET version=0.7.0

GitHubReleaseNotes --output ReleaseNotes.md --skip-empty-releases --exclude-labels question invalid doc --version %version%

Expand Down
7 changes: 3 additions & 4 deletions PackageReleaseNotes.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
# 0.6.0 (20 August 2022)
- #46 Add support to exclude properties from base-classes + fixed default value if SuppressNullableWarningExpression
- #47 Support Properties which have 'private set' [enhancement]
- #40 Builder code should handle private setters
# 0.7.0 (20 September 2022)
- #49 Fix IListBuilder namespace [bug]
- #48 Child builders for properties not generating correct code

The full release notes can be found here: https://github.com/StefH/FluentBuilder/blob/main/ReleaseNotes.md
4 changes: 4 additions & 0 deletions ReleaseNotes.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# 0.7.0 (20 September 2022)
- [#49](https://github.com/StefH/FluentBuilder/pull/49) - Fix IListBuilder namespace [bug] contributed by [StefH](https://github.com/StefH)
- [#48](https://github.com/StefH/FluentBuilder/issues/48) - Child builders for properties not generating correct code

# 0.6.0 (20 August 2022)
- [#46](https://github.com/StefH/FluentBuilder/pull/46) - Add support to exclude properties from base-classes + fixed default value if SuppressNullableWarningExpression contributed by [StefH](https://github.com/StefH)
- [#47](https://github.com/StefH/FluentBuilder/pull/47) - Support Properties which have 'private set' [enhancement] contributed by [StefH](https://github.com/StefH)
Expand Down
2 changes: 1 addition & 1 deletion src/FluentBuilderGenerator/FluentBuilderGenerator.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<Version>0.6.0</Version>
<Version>0.7.0</Version>
<TargetFramework>netstandard2.0</TargetFramework>
<LangVersion>10.0</LangVersion>
<ImplicitUsings>true</ImplicitUsings>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by https://github.com/StefH/FluentBuilder version 0.6.0.0
// This code was generated by https://github.com/StefH/FluentBuilder version 0.7.0.0
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by https://github.com/StefH/FluentBuilder version 0.6.0.0
// This code was generated by https://github.com/StefH/FluentBuilder version 0.7.0.0
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by https://github.com/StefH/FluentBuilder version 0.6.0.0
// This code was generated by https://github.com/StefH/FluentBuilder version 0.7.0.0
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by https://github.com/StefH/FluentBuilder version 0.6.0.0
// This code was generated by https://github.com/StefH/FluentBuilder version 0.7.0.0
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by https://github.com/StefH/FluentBuilder version 0.6.0.0
// This code was generated by https://github.com/StefH/FluentBuilder version 0.7.0.0
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by https://github.com/StefH/FluentBuilder version 0.6.0.0
// This code was generated by https://github.com/StefH/FluentBuilder version 0.7.0.0
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by https://github.com/StefH/FluentBuilder version 0.6.0.0
// This code was generated by https://github.com/StefH/FluentBuilder version 0.7.0.0
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by https://github.com/StefH/FluentBuilder version 0.6.0.0
// This code was generated by https://github.com/StefH/FluentBuilder version 0.7.0.0
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by https://github.com/StefH/FluentBuilder version 0.6.0.0
// This code was generated by https://github.com/StefH/FluentBuilder version 0.7.0.0
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by https://github.com/StefH/FluentBuilder version 0.6.0.0
// This code was generated by https://github.com/StefH/FluentBuilder version 0.7.0.0
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by https://github.com/StefH/FluentBuilder version 0.6.0.0
// This code was generated by https://github.com/StefH/FluentBuilder version 0.7.0.0
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by https://github.com/StefH/FluentBuilder version 0.6.0.0
// This code was generated by https://github.com/StefH/FluentBuilder version 0.7.0.0
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by https://github.com/StefH/FluentBuilder version 0.6.0.0
// This code was generated by https://github.com/StefH/FluentBuilder version 0.7.0.0
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by https://github.com/StefH/FluentBuilder version 0.6.0.0
// This code was generated by https://github.com/StefH/FluentBuilder version 0.7.0.0
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by https://github.com/StefH/FluentBuilder version 0.6.0.0
// This code was generated by https://github.com/StefH/FluentBuilder version 0.7.0.0
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by https://github.com/StefH/FluentBuilder version 0.6.0.0
// This code was generated by https://github.com/StefH/FluentBuilder version 0.7.0.0
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by https://github.com/StefH/FluentBuilder version 0.6.0.0
// This code was generated by https://github.com/StefH/FluentBuilder version 0.7.0.0
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by https://github.com/StefH/FluentBuilder version 0.6.0.0
// This code was generated by https://github.com/StefH/FluentBuilder version 0.7.0.0
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by https://github.com/StefH/FluentBuilder version 0.6.0.0
// This code was generated by https://github.com/StefH/FluentBuilder version 0.7.0.0
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by https://github.com/StefH/FluentBuilder version 0.6.0.0
// This code was generated by https://github.com/StefH/FluentBuilder version 0.7.0.0
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by https://github.com/StefH/FluentBuilder version 0.6.0.0
// This code was generated by https://github.com/StefH/FluentBuilder version 0.7.0.0
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by https://github.com/StefH/FluentBuilder version 0.6.0.0
// This code was generated by https://github.com/StefH/FluentBuilder version 0.7.0.0
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by https://github.com/StefH/FluentBuilder version 0.6.0.0
// This code was generated by https://github.com/StefH/FluentBuilder version 0.7.0.0
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by https://github.com/StefH/FluentBuilder version 0.6.0.0
// This code was generated by https://github.com/StefH/FluentBuilder version 0.7.0.0
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by https://github.com/StefH/FluentBuilder version 0.6.0.0
// This code was generated by https://github.com/StefH/FluentBuilder version 0.7.0.0
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by https://github.com/StefH/FluentBuilder version 0.6.0.0
// This code was generated by https://github.com/StefH/FluentBuilder version 0.7.0.0
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by https://github.com/StefH/FluentBuilder version 0.6.0.0
// This code was generated by https://github.com/StefH/FluentBuilder version 0.7.0.0
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by https://github.com/StefH/FluentBuilder version 0.6.0.0
// This code was generated by https://github.com/StefH/FluentBuilder version 0.7.0.0
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by https://github.com/StefH/FluentBuilder version 0.6.0.0
// This code was generated by https://github.com/StefH/FluentBuilder version 0.7.0.0
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by https://github.com/StefH/FluentBuilder version 0.6.0.0
// This code was generated by https://github.com/StefH/FluentBuilder version 0.7.0.0
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by https://github.com/StefH/FluentBuilder version 0.6.0.0
// This code was generated by https://github.com/StefH/FluentBuilder version 0.7.0.0
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by https://github.com/StefH/FluentBuilder version 0.6.0.0
// This code was generated by https://github.com/StefH/FluentBuilder version 0.7.0.0
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by https://github.com/StefH/FluentBuilder version 0.6.0.0
// This code was generated by https://github.com/StefH/FluentBuilder version 0.7.0.0
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -147,13 +147,13 @@ public void GenerateFiles_ClassWithPrivateSetter_And_AccessibilityPublicAndPriva

File.WriteAllText($"../../../DTO/{filename}", fileResult.Text);

//var instance = new ClassWithPrivateSetter1Builder()
// .WithValue1(100)
// .WithValue2(42)
// .Build();
var instance = new ClassWithPrivateSetter1Builder()
.WithValue1(100)
.WithValue2(42)
.Build();

//instance.Value1.Should().Be(100);
//instance.Value2.Should().Be(42);
instance.Value1.Should().Be(100);
instance.Value2.Should().Be(42);
}

[Fact]
Expand Down Expand Up @@ -217,7 +217,7 @@ public void GenerateFiles_ClassWithFluentBuilderIgnore_Should_GenerateCorrectFil

file.Text.Should().Be(@"//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by https://github.com/StefH/FluentBuilder version 0.6.0.0
// This code was generated by https://github.com/StefH/FluentBuilder version 0.7.0.0
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
Expand Down Expand Up @@ -312,7 +312,7 @@ public void GenerateFiles_ForSimpleClass_Should_GenerateCorrectFiles()

file.Text.Should().Be(@"//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by https://github.com/StefH/FluentBuilder version 0.6.0.0
// This code was generated by https://github.com/StefH/FluentBuilder version 0.7.0.0
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
Expand Down Expand Up @@ -767,7 +767,7 @@ public void GenerateFiles_For2ClassesWithListBuilder_Should_GenerateCorrectFiles
Text = File.ReadAllText(pathTest),
AttributeToAddToClass = "FluentBuilder.AutoGenerateBuilder"
};

// Act
var result = _sut.Execute(Namespace, new[] { sourceFileTest, sourceFileOther });

Expand Down

0 comments on commit dc77634

Please sign in to comment.