Update .NET SDK 9.0 (#768) #1356
Annotations
10 errors
Run tests:
_/tests/Meziantou.Analyzer.Test/Rules/UseStringCreateInsteadOfFormattableStringAnalyzerTests.cs#L32
System.AggregateException : One or more errors occurred. (The process cannot access the file 'C:\Users\runneradmin\AppData\Local\Meziantou.AnalyzerTests\ref\Microsoft.NETCore.App.Ref@5.0.0\mscorlib.dll' because it is being used by another process.)
---- System.IO.IOException : The process cannot access the file 'C:\Users\runneradmin\AppData\Local\Meziantou.AnalyzerTests\ref\Microsoft.NETCore.App.Ref@5.0.0\mscorlib.dll' because it is being used by another process.
|
Run tests:
_/tests/Meziantou.Analyzer.Test/Rules/OptimizeLinqUsageAnalyzerUseIndexerTests.cs#L176
The code doesn't compile. Test0.cs(7,13): error CS0012: The type 'ValueType' is defined in an assembly that is not referenced. You must add a reference to assembly 'netstandard, Version=2.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51'.
Test0.cs(8,9): error CS0012: The type 'ValueType' is defined in an assembly that is not referenced. You must add a reference to assembly 'netstandard, Version=2.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51'.
using System.Linq;
class Test
{
public Test()
{
var list = new int[5];
_ = list.Last();
list.First(x=> x == 0);
}
}
|
Run tests:
_/tests/Meziantou.Analyzer.Test/Rules/ConstructorArgumentParametersShouldExistInConstructorsAnalyzerTests.cs#L57
The code doesn't compile. Test0.cs(11,28): error CS0234: The type or namespace name 'ConstructorArgumentAttribute' does not exist in the namespace 'System.Windows.Markup' (are you missing an assembly reference?)
Test0.cs(11,28): error CS0234: The type or namespace name 'ConstructorArgument' does not exist in the namespace 'System.Windows.Markup' (are you missing an assembly reference?)
public class MyExtension
{
public MyExtension() { }
public MyExtension(object value1)
{
Value1 = value1;
}
[System.Windows.Markup.ConstructorArgument("value1")]
public object Value1 { get; set; }
}
|
Run tests:
_/tests/Meziantou.Analyzer.Test/Rules/ConstructorArgumentParametersShouldExistInConstructorsAnalyzerTests.cs#L35
The code doesn't compile. Test0.cs(11,28): error CS0234: The type or namespace name 'ConstructorArgumentAttribute' does not exist in the namespace 'System.Windows.Markup' (are you missing an assembly reference?)
Test0.cs(11,28): error CS0234: The type or namespace name 'ConstructorArgument' does not exist in the namespace 'System.Windows.Markup' (are you missing an assembly reference?)
public class MyExtension
{
public MyExtension() { }
public MyExtension(object value1)
{
Value1 = value1;
}
[System.Windows.Markup.ConstructorArgument("value2")]
public object Value1 { get; set; }
}
|
Run tests:
_/tests/Meziantou.Analyzer.Test/Rules/OptimizeLinqUsageAnalyzerOrderTests.cs#L22
System.AggregateException : One or more errors occurred. (The process cannot access the file 'C:\Users\runneradmin\AppData\Local\Meziantou.AnalyzerTests\ref\Microsoft.NETCore.App.Ref@5.0.0\mscorlib.dll' because it is being used by another process.)
---- System.IO.IOException : The process cannot access the file 'C:\Users\runneradmin\AppData\Local\Meziantou.AnalyzerTests\ref\Microsoft.NETCore.App.Ref@5.0.0\mscorlib.dll' because it is being used by another process.
|
Run tests:
_/tests/Meziantou.Analyzer.Test/Rules/OptimizeLinqUsageAnalyzerOrderTests.cs#L62
System.AggregateException : One or more errors occurred. (The process cannot access the file 'C:\Users\runneradmin\AppData\Local\Meziantou.AnalyzerTests\ref\Microsoft.NETCore.App.Ref@5.0.0\mscorlib.dll' because it is being used by another process.)
---- System.IO.IOException : The process cannot access the file 'C:\Users\runneradmin\AppData\Local\Meziantou.AnalyzerTests\ref\Microsoft.NETCore.App.Ref@5.0.0\mscorlib.dll' because it is being used by another process.
|
Run tests:
_/tests/Meziantou.Analyzer.Test/Rules/OptimizeLinqUsageAnalyzerOrderTests.cs#L42
System.AggregateException : One or more errors occurred. (The process cannot access the file 'C:\Users\runneradmin\AppData\Local\Meziantou.AnalyzerTests\ref\Microsoft.NETCore.App.Ref@5.0.0\mscorlib.dll' because it is being used by another process.)
---- System.IO.IOException : The process cannot access the file 'C:\Users\runneradmin\AppData\Local\Meziantou.AnalyzerTests\ref\Microsoft.NETCore.App.Ref@5.0.0\mscorlib.dll' because it is being used by another process.
|
Run tests:
_/tests/Meziantou.Analyzer.Test/Rules/MakeMemberReadOnlyAnalyzerTests.cs#L623
System.AggregateException : One or more errors occurred. (The process cannot access the file 'C:\Users\runneradmin\AppData\Local\Meziantou.AnalyzerTests\ref\Microsoft.NETCore.App.Ref@5.0.0\mscorlib.dll' because it is being used by another process.)
---- System.IO.IOException : The process cannot access the file 'C:\Users\runneradmin\AppData\Local\Meziantou.AnalyzerTests\ref\Microsoft.NETCore.App.Ref@5.0.0\mscorlib.dll' because it is being used by another process.
|
Run tests:
_/tests/Meziantou.Analyzer.Test/Rules/MakeMethodStaticAnalyzerTests_Methods.cs#L499
System.AggregateException : One or more errors occurred. (The process cannot access the file 'C:\Users\runneradmin\AppData\Local\Meziantou.AnalyzerTests\ref\Microsoft.NETCore.App.Ref@5.0.0\mscorlib.dll' because it is being used by another process.)
---- System.IO.IOException : The process cannot access the file 'C:\Users\runneradmin\AppData\Local\Meziantou.AnalyzerTests\ref\Microsoft.NETCore.App.Ref@5.0.0\mscorlib.dll' because it is being used by another process.
|
Run tests:
_/tests/Meziantou.Analyzer.Test/Rules/MakeMethodStaticAnalyzerTests_Methods.cs#L474
System.AggregateException : One or more errors occurred. (The process cannot access the file 'C:\Users\runneradmin\AppData\Local\Meziantou.AnalyzerTests\ref\Microsoft.NETCore.App.Ref@5.0.0\mscorlib.dll' because it is being used by another process.)
---- System.IO.IOException : The process cannot access the file 'C:\Users\runneradmin\AppData\Local\Meziantou.AnalyzerTests\ref\Microsoft.NETCore.App.Ref@5.0.0\mscorlib.dll' because it is being used by another process.
|
Loading