dotnet / sdk

Core functionality needed to create .NET Core projects, that is shared between Visual Studio and CLI
https://dot.net/core
MIT License
2.73k stars 1.07k forks source link

error C S0117: 'Ascii' does not contain a definition for 'EqualsIgnoreCase' #33645

Closed mayadav1 closed 1 year ago

mayadav1 commented 1 year ago

1# dotnet run -c release -f net8.0 -filter "System.IO.Tests.Perf_FileStream.Write" 2# dotnet run -c release -f net8.0 --filter "System.IO.Tests.Perf_FileStream.Write" --corerun C:\Users\mayadav1\Desktop\runtime\artifacts\bin\testhost\net8.0-windows-Release-x64\shared\Microsoft.NETCore.App\8.0.0\corerun.exe --artifacts C:\Users\mayadav1\Desktop\net8.0half220623\

Both the commands emit the error as below:

C:\Users\mayadav1\Desktop\performance\src\benchmarks\micro\libraries\System.Text.Encoding\Perf.Ascii.cs(53,70): error C S0117: 'Ascii' does not contain a definition for 'EqualsIgnoreCase' [C:\Users\mayadav1\Desktop\performance\src\benchmar ks\micro\MicroBenchmarks.csproj::TargetFramework=net8.0] C:\Users\mayadav1\Desktop\performance\src\benchmarks\micro\libraries\System.Text.Encoding\Perf.Ascii.cs(56,70): error C S0117: 'Ascii' does not contain a definition for 'EqualsIgnoreCase' [C:\Users\mayadav1\Desktop\performance\src\benchmar ks\micro\MicroBenchmarks.csproj::TargetFramework=net8.0] C:\Users\mayadav1\Desktop\performance\src\benchmarks\micro\libraries\System.Text.Encoding\Perf.Ascii.cs(59,76): error C S0117: 'Ascii' does not contain a definition for 'EqualsIgnoreCase' [C:\Users\mayadav1\Desktop\performance\src\benchmar ks\micro\MicroBenchmarks.csproj::TargetFramework=net8.0] C:\Users\mayadav1\Desktop\performance\src\benchmarks\micro\libraries\System.Text.Encoding\Perf.Ascii.cs(62,69): error C S0117: 'Ascii' does not contain a definition for 'EqualsIgnoreCase' [C:\Users\mayadav1\Desktop\performance\src\benchmar ks\micro\MicroBenchmarks.csproj::TargetFramework=net8.0] C:\Users\mayadav1\Desktop\performance\src\benchmarks\micro\libraries\System.Text.Encoding\Perf.Ascii.cs(65,69): error C S0117: 'Ascii' does not contain a definition for 'EqualsIgnoreCase' [C:\Users\mayadav1\Desktop\performance\src\benchmar ks\micro\MicroBenchmarks.csproj::TargetFramework=net8.0] C:\Users\mayadav1\Desktop\performance\src\benchmarks\micro\libraries\System.Text.Encoding\Perf.Ascii.cs(68,75): error C S0117: 'Ascii' does not contain a definition for 'EqualsIgnoreCase' [C:\Users\mayadav1\Desktop\performance\src\benchmar ks\micro\MicroBenchmarks.csproj::TargetFramework=net8.0]

The build failed. Fix the build errors and run again.

Please help me to fix it.

mayadav1 commented 1 year ago

Sorry , I put it in incorrect repo