Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
21 commits
Select commit Hold shift + click to select a range
abd649c
Extensions and bug fixes
carl-andersson-at-westermo Apr 10, 2026
7369663
TUnit Migration
carl-andersson-at-westermo Apr 10, 2026
912aec8
Fix: Dotnet 10 in CICD and removed unused using.
carl-andersson-at-westermo Apr 13, 2026
05aee5b
Fix syntax for MTP
carl-andersson-at-westermo Apr 13, 2026
32ef526
Test fixes
carl-andersson-at-westermo Jul 24, 2026
db96eeb
Fixed a small bug
carl-andersson-at-westermo Jul 24, 2026
3008eb8
docs: Add Static Extensions and Plugin Architecture to README
carl-andersson-at-westermo Jul 24, 2026
989a032
dotnet 10
carl-andersson-at-westermo Jul 24, 2026
b920fba
feat: Add support for configurable static extensions generation
carl-andersson-at-westermo Jul 24, 2026
b75c784
Missed add
carl-andersson-at-westermo Jul 24, 2026
87bc4c6
Force load
carl-andersson-at-westermo Jul 24, 2026
84901db
Dependency updates
carl-andersson-at-westermo Jul 24, 2026
2baaaab
More tests and fixes
carl-andersson-at-westermo Jul 24, 2026
8aff9a3
More tests
carl-andersson-at-westermo Jul 24, 2026
acb3fb6
Controllable injection priority and more correct tree resolution
carl-andersson-at-westermo Jul 24, 2026
19de34d
Ensure init
carl-andersson-at-westermo Jul 24, 2026
0e7b5ae
AsyncDisposable handling and cycles for methods
carl-andersson-at-westermo Jul 24, 2026
ed94836
Generator benchmarks
carl-andersson-at-westermo Jul 24, 2026
369b8b8
Small benchmark fix
carl-andersson-at-westermo Jul 24, 2026
89274cf
CI fix
carl-andersson-at-westermo Jul 24, 2026
1eacad3
Don't fail on deviatio
carl-andersson-at-westermo Jul 24, 2026
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
16 changes: 14 additions & 2 deletions .github/workflows/benchmark.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,11 @@ jobs:
- name: Setup dotnet ${{ matrix.dotnet-version }}
uses: actions/setup-dotnet@v4
with:
dotnet-version: "9.0.x"
dotnet-version: "10.0.x"
- name: Run benchmark
run: cd Benchmarking/Benchmarks && dotnet run -c Release --exporters json --filter '*'

- name: Store benchmark result
- name: Store runtime benchmark result
uses: rhysd/github-action-benchmark@v1
with:
name: Benchmark.Net Benchmark
Expand All @@ -39,3 +39,15 @@ jobs:
# Show alert with commit comment on detecting possible performance regression
alert-threshold: '200%'
comment-on-alert: true

- name: Store generator benchmark result
uses: rhysd/github-action-benchmark@v1
with:
name: Generator Benchmark.Net Benchmark
tool: 'benchmarkdotnet'
output-file-path: Benchmarking/Benchmarks/BenchmarkDotNet.Artifacts/results/Benchmarks.GeneratorBenchmarks-report-full-compressed.json
github-token: ${{ secrets.GITHUB_TOKEN }}
auto-push: true
summary-always: true
alert-threshold: '200%'
comment-on-alert: true
30 changes: 21 additions & 9 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,13 @@ jobs:
- name: Setup dotnet ${{ matrix.dotnet-version }}
uses: actions/setup-dotnet@v4
with:
dotnet-version: "9.0.x"
dotnet-version: "10.0.x"
- name: Restore
run: dotnet restore FactoryGenerator.sln
- name: Build
run: dotnet build FactoryGenerator.sln --no-restore
- name: Test
run: dotnet test FactoryGenerator.sln --no-build --no-restore
run: dotnet test --no-build --no-restore --solution FactoryGenerator.sln

pack:
runs-on: ubuntu-latest
Expand All @@ -45,7 +45,7 @@ jobs:
- name: Setup dotnet ${{ matrix.dotnet-version }}
uses: actions/setup-dotnet@v4
with:
dotnet-version: "9.0.x"
dotnet-version: "10.0.x"
- name: Pack Generator
run: dotnet pack FactoryGenerator/FactoryGenerator.csproj -o "${{ env.NuGetDirectory }}" --property:RepositoryCommit="${{ env.COMMIT_SHA }}" --property:InformationalVersion="UNRELEASED" --property:AssemblyVersion="0.0.0" --property:FileVersion="0.0.0" --property:Version="0.0.0"
- name: Pack Attributes
Expand All @@ -68,7 +68,7 @@ jobs:
- name: Setup dotnet ${{ matrix.dotnet-version }}
uses: actions/setup-dotnet@v4
with:
dotnet-version: "9.0.x"
dotnet-version: "10.0.x"
- name: Pack Generator
run: dotnet pack FactoryGenerator/FactoryGenerator.csproj -o "${{ env.NuGetDirectory }}" --property:RepositoryCommit="${{ env.COMMIT_SHA }}" --property:InformationalVersion="${{ github.ref_name }}" --property:AssemblyVersion="${{ github.ref_name }}" --property:FileVersion="${{ github.ref_name }}" --property:Version="${{ github.ref_name }}"
- name: Pack Attributes
Expand All @@ -94,7 +94,7 @@ jobs:
- name: Setup dotnet ${{ matrix.dotnet-version }}
uses: actions/setup-dotnet@v4
with:
dotnet-version: "9.0.x"
dotnet-version: "10.0.x"
- name: Publish Nuget packages
run: |
for file in $(find "${{ env.NuGetDirectory }}" -type f -name "*.nupkg"); do
Expand All @@ -110,11 +110,11 @@ jobs:
- name: Setup dotnet ${{ matrix.dotnet-version }}
uses: actions/setup-dotnet@v4
with:
dotnet-version: "9.0.x"
dotnet-version: "10.0.x"
- name: Run benchmark
run: cd Benchmarking/Benchmarks && dotnet run -c Release --exporters json --filter '*'

- name: Store benchmark result
- name: Store runtime benchmark result
uses: rhysd/github-action-benchmark@v1
with:
name: Benchmark.Net Benchmark
Expand All @@ -124,5 +124,17 @@ jobs:
summary-always: true
# Show alert with commit comment on detecting possible performance regression
alert-threshold: '200%'
comment-on-alert: true
fail-on-alert: true
comment-on-alert: false
fail-on-alert: false

- name: Store generator benchmark result
uses: rhysd/github-action-benchmark@v1
with:
name: Generator Benchmark.Net Benchmark
tool: 'benchmarkdotnet'
output-file-path: Benchmarking/Benchmarks/BenchmarkDotNet.Artifacts/results/Benchmarks.GeneratorBenchmarks-report-full-compressed.json
github-token: ${{ secrets.GITHUB_TOKEN }}
summary-always: true
alert-threshold: '200%'
comment-on-alert: false
fail-on-alert: false
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@
[Rr]elease-x86/
[Dd]ebug-x86/
x64/
build/
bld/
[Bb]in/
[Oo]bj/
Expand Down
7 changes: 5 additions & 2 deletions Benchmarking/Benchmarks/Benchmarks.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,20 @@

<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net9.0</TargetFramework>
<TargetFramework>net10.0</TargetFramework>
Comment thread
carl-andersson-at-westermo marked this conversation as resolved.
<LangVersion>preview</LangVersion>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
<PublishAot>true</PublishAot>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="BenchmarkDotNet" />
<PackageReference Include="Microsoft.CodeAnalysis.CSharp" />
</ItemGroup>

<ItemGroup>
<ProjectReference Include="..\..\FactoryGenerator.Attributes\FactoryGenerator.Attributes.csproj" />
<ProjectReference Include="..\..\FactoryGenerator\FactoryGenerator.csproj" />
<ProjectReference Include="..\..\Tests\TestData\Inheritor\Inheritor.csproj" />
</ItemGroup>

Expand Down
Loading
Loading