Fix folder cache to reduce flakiness #1358
Annotations
7 errors
Run tests:
_/tests/Meziantou.Analyzer.Test/Rules/MakeMethodStaticAnalyzerTests_Methods.cs#L499
The code doesn't compile. Test0.cs(4,28): error CS0234: The type or namespace name 'Http' does not exist in the namespace 'Microsoft.AspNetCore' (are you missing an assembly reference?)
Test0.cs(12,24): error CS0246: The type or namespace name 'HttpContext' could not be found (are you missing a using directive or an assembly reference?)
Test0.cs(8,29): error CS0246: The type or namespace name 'RequestDelegate' could not be found (are you missing a using directive or an assembly reference?)
using System;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Http;
public class CustomMiddleware
{
public CustomMiddleware(RequestDelegate next)
{
}
public Task Invoke(HttpContext httpContext)
{
throw null;
}
}
|
Run tests:
_/tests/Meziantou.Analyzer.Test/Rules/MakeMethodStaticAnalyzerTests_Methods.cs#L474
The code doesn't compile. Test0.cs(4,28): error CS0234: The type or namespace name 'Builder' does not exist in the namespace 'Microsoft.AspNetCore' (are you missing an assembly reference?)
Test0.cs(9,35): error CS0246: The type or namespace name 'IServiceCollection' could not be found (are you missing a using directive or an assembly reference?)
Test0.cs(13,27): error CS0246: The type or namespace name 'IApplicationBuilder' could not be found (are you missing a using directive or an assembly reference?)
using System;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Builder;
using Microsoft.Extensions.DependencyInjection;
public class Startup
{
public void ConfigureServices(IServiceCollection services)
{
}
public void Configure(IApplicationBuilder app)
{
}
}
|
Run tests:
_/tests/Meziantou.Analyzer.Test/Rules/MakeMethodStaticAnalyzerTests_Methods.cs#L520
The code doesn't compile. Test0.cs(4,28): error CS0234: The type or namespace name 'Http' does not exist in the namespace 'Microsoft.AspNetCore' (are you missing an assembly reference?)
Test0.cs(6,33): error CS0246: The type or namespace name 'IMiddleware' could not be found (are you missing a using directive or an assembly reference?)
Test0.cs(8,29): error CS0246: The type or namespace name 'HttpContext' could not be found (are you missing a using directive or an assembly reference?)
Test0.cs(8,54): error CS0246: The type or namespace name 'RequestDelegate' could not be found (are you missing a using directive or an assembly reference?)
using System;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Http;
public class CustomMiddleware : IMiddleware
{
public Task InvokeAsync(HttpContext httpContext, RequestDelegate next)
{
throw null;
}
}
|
Run tests:
_/tests/Meziantou.Analyzer.Test/Rules/MakeMethodStaticAnalyzerTests_Methods.cs#L541
The code doesn't compile. Test0.cs(4,28): error CS0234: The type or namespace name 'Http' does not exist in the namespace 'Microsoft.AspNetCore' (are you missing an assembly reference?)
Test0.cs(6,33): error CS0246: The type or namespace name 'IMiddleware' could not be found (are you missing a using directive or an assembly reference?)
Test0.cs(8,10): error CS0246: The type or namespace name 'IMiddleware' could not be found (are you missing a using directive or an assembly reference?)
Test0.cs(8,34): error CS0246: The type or namespace name 'HttpContext' could not be found (are you missing a using directive or an assembly reference?)
Test0.cs(8,59): error CS0246: The type or namespace name 'RequestDelegate' could not be found (are you missing a using directive or an assembly reference?)
Test0.cs(8,10): error CS0538: 'IMiddleware' in explicit interface declaration is not an interface
using System;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Http;
public class CustomMiddleware : IMiddleware
{
Task IMiddleware.InvokeAsync(HttpContext httpContext, RequestDelegate next)
{
throw null;
}
}
|
Run tests:
_/tests/Meziantou.Analyzer.Test/Rules/DoNotUseBlockingCallInAsyncContextAnalyzer_AsyncContextTests.cs#L735
The code doesn't compile. Test0.cs(11,36): error CS1061: 'IServiceProvider' does not contain a definition for 'CreateScope' and no accessible extension method 'CreateScope' accepting a first argument of type 'IServiceProvider' could be found (are you missing a using directive or an assembly reference?)
using System;
using System.Threading.Tasks;
using Microsoft.Extensions.DependencyInjection;
class demo
{
public async Task a()
{
IServiceProvider provider = null;
using var scope = provider.CreateScope();
}
}
|
Run tests:
_/tests/Meziantou.Analyzer.Test/Rules/DoNotUseBlockingCallInAsyncContextAnalyzer_AsyncContextTests.cs#L757
System.AggregateException : One or more errors occurred. (Assert.NotEmpty() Failure: Collection was empty)
---- Assert.NotEmpty() Failure: Collection was empty
|
Run tests
Process completed with exit code 1.
|
Loading