Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/BuildAndTest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [windows-2022]
os: [windows-2022, ubuntu-latest]

steps:
- uses: actions/checkout@v4
Expand Down
2 changes: 1 addition & 1 deletion src-examples/BuilderConsumer/Content.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@ namespace BuilderConsumer
{
public class Content
{
public string Id { get; set; }
public string Id { get; set; } = string.Empty;
}
}
2 changes: 1 addition & 1 deletion src-examples/BuilderConsumer/Settings.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@ namespace BuilderConsumer
{
public class Settings
{
public IReadOnlyCollection<Content> Contents { get; set; }
public IReadOnlyCollection<Content> Contents { get; set; } = [];
}
}
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
<Project Sdk="Microsoft.NET.Sdk">
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net45</TargetFramework>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="FluentBuilder" Version="0.10.0">
<PackageReference Include="FluentBuilder" Version="0.9.2">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net472</TargetFramework>
<!--<LangVersion>9</LangVersion>-->
<LangVersion>12</LangVersion>
</PropertyGroup>

<ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="FluentBuilder" Version="0.11.0">
<PackageReference Include="FluentBuilder" Version="0.9.2">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
using FluentBuilder;
//using FluentBuilder;

namespace BuilderConsumerNET8;
//namespace BuilderConsumerNET8;

[AutoGenerateBuilder]
public class ClassWithPrimaryConstructor(string test, int num)
{
public string Normal { get; set; } = string.Empty;
//[AutoGenerateBuilder]
//public class ClassWithPrimaryConstructor(string test, int num)
//{
// public string Normal { get; set; } = string.Empty;

public string Data { get; } = test + num;
}
// public string Data { get; } = test + num;
//}
22 changes: 11 additions & 11 deletions src-examples/BuilderConsumerNET8_ViaNuGet/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -34,16 +34,16 @@ static void Main(string[] args)
Console.WriteLine($"{userC.FirstName.Length} {userC.LastName == null}");


var rec = new RecordWithPrimaryConstructorBuilder()
.WithNormal("normal")
.WithTest("t")
.WithNum(50)
.Build();

var cls = new ClassWithPrimaryConstructorBuilder()
.WithNormal("normal")
.WithTest("t")
.WithNum(50)
.Build();
//var rec = new RecordWithPrimaryConstructorBuilder()
// .WithNormal("normal")
// .WithTest("t")
// .WithNum(50)
// .Build();

//var cls = new ClassWithPrimaryConstructorBuilder()
// .WithNormal("normal")
// .WithTest("t")
// .WithNum(50)
// .Build();
}
}
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
using FluentBuilder;
//using FluentBuilder;

namespace BuilderConsumerNET8;
//namespace BuilderConsumerNET8;

[AutoGenerateBuilder]
public record RecordWithPrimaryConstructor(string Test, int Num)
{
public string Normal { get; set; } = string.Empty;
//[AutoGenerateBuilder]
//public record RecordWithPrimaryConstructor(string Test, int Num)
//{
// public string Normal { get; set; } = string.Empty;

public string Data { get; } = Test + Num;
}
// public string Data { get; } = Test + Num;
//}
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<Version>0.0.14</Version>
<Version>0.0.15</Version>
<TargetFramework>netstandard2.1</TargetFramework>
<LangVersion>latest</LangVersion>
<Nullable>enable</Nullable>
Expand All @@ -27,7 +27,7 @@
</ItemGroup>

<ItemGroup>
<PackageReference Include="Microsoft.CodeAnalysis.CSharp" Version="4.14.0" />
<PackageReference Include="Microsoft.CodeAnalysis.CSharp" Version="4.8.0" />
<PackageReference Include="AnyOf" Version="0.5.0.1" />
</ItemGroup>

Expand Down
9 changes: 2 additions & 7 deletions 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.12.0</Version>
<Version>0.13.0</Version>
<TargetFramework>netstandard2.0</TargetFramework>
<LangVersion>latest</LangVersion>
<ImplicitUsings>true</ImplicitUsings>
Expand Down Expand Up @@ -53,11 +53,7 @@
</ItemGroup>

<ItemGroup>
<PackageReference Include="Microsoft.CodeAnalysis.Analyzers" Version="4.14.0">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="Microsoft.CodeAnalysis.CSharp" Version="4.14.0" PrivateAssets="all" />
<PackageReference Include="Microsoft.CodeAnalysis.CSharp" Version="4.8.0" PrivateAssets="all" />
</ItemGroup>

<ItemGroup>
Expand All @@ -73,5 +69,4 @@
<_Parameter1>DynamicProxyGenAssembly2</_Parameter1>
</AssemblyAttribute>
</ItemGroup>

</Project>
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.12.0.0
// This code was generated by https://github.com/StefH/FluentBuilder version 0.13.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.12.0.0
// This code was generated by https://github.com/StefH/FluentBuilder version 0.13.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.12.0.0
// This code was generated by https://github.com/StefH/FluentBuilder version 0.13.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.12.0.0
// This code was generated by https://github.com/StefH/FluentBuilder version 0.13.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.12.0.0
// This code was generated by https://github.com/StefH/FluentBuilder version 0.13.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.12.0.0
// This code was generated by https://github.com/StefH/FluentBuilder version 0.13.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.12.0.0
// This code was generated by https://github.com/StefH/FluentBuilder version 0.13.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.12.0.0
// This code was generated by https://github.com/StefH/FluentBuilder version 0.13.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.12.0.0
// This code was generated by https://github.com/StefH/FluentBuilder version 0.13.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.12.0.0
// This code was generated by https://github.com/StefH/FluentBuilder version 0.13.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.12.0.0
// This code was generated by https://github.com/StefH/FluentBuilder version 0.13.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.12.0.0
// This code was generated by https://github.com/StefH/FluentBuilder version 0.13.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.12.0.0
// This code was generated by https://github.com/StefH/FluentBuilder version 0.13.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.12.0.0
// This code was generated by https://github.com/StefH/FluentBuilder version 0.13.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.12.0.0
// This code was generated by https://github.com/StefH/FluentBuilder version 0.13.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.12.0.0
// This code was generated by https://github.com/StefH/FluentBuilder version 0.13.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.12.0.0
// This code was generated by https://github.com/StefH/FluentBuilder version 0.13.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.12.0.0
// This code was generated by https://github.com/StefH/FluentBuilder version 0.13.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.12.0.0
// This code was generated by https://github.com/StefH/FluentBuilder version 0.13.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.12.0.0
// This code was generated by https://github.com/StefH/FluentBuilder version 0.13.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.12.0.0
// This code was generated by https://github.com/StefH/FluentBuilder version 0.13.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.12.0.0
// This code was generated by https://github.com/StefH/FluentBuilder version 0.13.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.12.0.0
// This code was generated by https://github.com/StefH/FluentBuilder version 0.13.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.12.0.0
// This code was generated by https://github.com/StefH/FluentBuilder version 0.13.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.12.0.0
// This code was generated by https://github.com/StefH/FluentBuilder version 0.13.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.12.0.0
// This code was generated by https://github.com/StefH/FluentBuilder version 0.13.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.12.0.0
// This code was generated by https://github.com/StefH/FluentBuilder version 0.13.0.0
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
Expand Down
Loading
Loading