Skip to content

Provide a codefix for legacy service usage and add tests #740

Provide a codefix for legacy service usage and add tests

Provide a codefix for legacy service usage and add tests #740

Triggered via push December 21, 2025 21:02
Status Failure
Total duration 1m 44s
Artifacts

build.yml

on: push
os-matrix
12s
os-matrix
dotnet-format
42s
dotnet-format
Matrix: build
Fit to window
Zoom out
Zoom in

Annotations

7 errors
build-ubuntu-latest
Process completed with exit code 1.
build-ubuntu-latest: src/DependencyInjection.Tests/GenerationTests.cs#L397
Generic parameter must not be the type of service key in use but rather the service type to register, if any.
build-ubuntu-latest: src/DependencyInjection.Tests/obj/Release/net10.0/generated/Devlooped.Extensions.DependencyInjection.CodeAnalysis/Devlooped.Extensions.DependencyInjection.IncrementalGenerator/AddKeyedSingleton.g.cs#L44
Cannot convert lambda expression to intended delegate type because some of the return types in the block are not implicitly convertible to the delegate return type
build-ubuntu-latest: src/DependencyInjection.Tests/GenerationTests.cs#L397
Generic parameter must not be the type of service key in use but rather the service type to register, if any.
build-ubuntu-latest: src/DependencyInjection.Tests/obj/Release/net10.0/generated/Devlooped.Extensions.DependencyInjection.CodeAnalysis/Devlooped.Extensions.DependencyInjection.IncrementalGenerator/AddKeyedSingleton.g.cs#L44
Cannot convert lambda expression to intended delegate type because some of the return types in the block are not implicitly convertible to the delegate return type