Skip to content

Use Microsoft.Extensions.DependencyInjection for the compiler #317

Use Microsoft.Extensions.DependencyInjection for the compiler

Use Microsoft.Extensions.DependencyInjection for the compiler #317

Triggered via pull request February 26, 2025 14:54
@MielekMielek
synchronize #100
mielek/ioc
Status Failure
Total duration 56s
Artifacts 1

dotnet.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

3 errors and 11 warnings
build: test/Test.Core/CompilerTestInitialize.cs#L24
'ServiceCollection' does not contain a definition for 'SetupCompiler' and no accessible extension method 'SetupCompiler' accepting a first argument of type 'ServiceCollection' could be found (are you missing a using directive or an assembly reference?)
build: test/Test.Core/CompilerTestInitialize.cs#L24
'ServiceCollection' does not contain a definition for 'SetupCompiler' and no accessible extension method 'SetupCompiler' accepting a first argument of type 'ServiceCollection' could be found (are you missing a using directive or an assembly reference?)
build
Process completed with exit code 1.
build
No files were found with the provided path: TestResults. No artifacts will be uploaded.
build: src/Analyzers/ExpressionDefinition.Analyzer.cs#L13
This compiler extension should not be implemented in an assembly with target framework '.NET 8.0'. References to other target frameworks will cause the compiler to behave unpredictably. (https://github.com/dotnet/roslyn-analyzers/blob/main/docs/rules/RS1041.md)
build: src/Analyzers/ExpressionTypeUsed.Analyzer.cs#L14
This compiler extension should not be implemented in an assembly with target framework '.NET 8.0'. References to other target frameworks will cause the compiler to behave unpredictably. (https://github.com/dotnet/roslyn-analyzers/blob/main/docs/rules/RS1041.md)
build: src/Analyzers/TestGenerator.cs#L8
This compiler extension should not be implemented in an assembly with target framework '.NET 8.0'. References to other target frameworks will cause the compiler to behave unpredictably. (https://github.com/dotnet/roslyn-analyzers/blob/main/docs/rules/RS1041.md)
build: src/Authoring/Attributes/DocumentAttribute.cs#L7
Parameter 'scope' is unread.
build: src/Core/Compiling/Syntax/LocalDeclarationStatementCompiler.cs#L35
Possible null reference argument for parameter 'key' in 'bool IReadOnlyDictionary<string, IReturnValueMethodPolicyHandler>.TryGetValue(string key, out IReturnValueMethodPolicyHandler value)'.
build: src/Core/Compiling/Syntax/LocalDeclarationStatementCompiler.cs#L37
Possible null reference argument for parameter 'node' in 'void IReturnValueMethodPolicyHandler.Handle(ICompilationContext context, InvocationExpressionSyntax node, string variableName)'.
build: src/Testing/Expressions/Extensions/MockJwt.cs#L10
Non-nullable property 'Id' must contain a non-null value when exiting constructor. Consider adding the 'required' modifier or declaring the property as nullable.
build: src/Testing/Expressions/Extensions/MockJwt.cs#L11
Non-nullable property 'Algorithm' must contain a non-null value when exiting constructor. Consider adding the 'required' modifier or declaring the property as nullable.
build: src/Testing/Expressions/Extensions/MockJwt.cs#L12
Non-nullable property 'Issuer' must contain a non-null value when exiting constructor. Consider adding the 'required' modifier or declaring the property as nullable.
build: src/Testing/Expressions/Extensions/MockJwt.cs#L13
Non-nullable property 'Subject' must contain a non-null value when exiting constructor. Consider adding the 'required' modifier or declaring the property as nullable.

Artifacts

Produced during runtime
Name Size
dotnet-format-report
154 Bytes