-
-
Notifications
You must be signed in to change notification settings - Fork 1k
Closed
Description
We recently just tried to upgrade BenchmarkDotNet from 0.15.6 to 0.15.7.
When we try to compile however, we get this error
CSC : error CS9057: The analyzer assembly 'C:\Users\some.username\.nuget\packages\benchmarkdotnet.annotations\0.15.7\analyzers\dotnet\cs\BenchmarkDotNet.Analyzer
s.dll' references version '4.14.0.0' of the compiler, which is newer than the currently running version '4.11.0.0'. [C:\code\I
ntegration.Benchmark\Integration.Benchmark.csproj]
CSProj pretty much looks like this
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
<IsPackable>false</IsPackable>
<GenerateProgramFile>false</GenerateProgramFile>
<NoWarn>$(NoWarn),CS7022</NoWarn>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="BenchmarkDotNet" />
<PackageReference Include="BenchmarkDotNet.Diagnostics.dotMemory" />
<PackageReference Include="BenchmarkDotNet.Diagnostics.dotTrace" />
</ItemGroup>
<ItemGroup>
<Folder Include="BenchmarkDotNet.Artifacts\" />
</ItemGroup>
<ItemGroup>
<RuntimeHostConfigurationOption Include="System.GC.ConserveMemory" Value="9" />
<RuntimeHostConfigurationOption Include="System.GC.HeapHardLimit" Value="147000000" />
</ItemGroup>
</Project>
and Directory.Packages.props has these specified
<PackageVersion Include="BenchmarkDotNet" Version="0.15.7" />
<PackageVersion Include="BenchmarkDotNet.TestAdapter" Version="0.15.7" />
<PackageVersion Include="BenchmarkDotNet.Diagnostics.dotMemory" Version="0.15.7" />
<PackageVersion Include="BenchmarkDotNet.Diagnostics.dotTrace" Version="0.15.7" />
The global.json file is
{
"sdk": {
"version": "8.0.415",
"rollForward": "latestFeature"
}
}
The solution this is referenced is a dotnet 8.0.
my local SDKS look like
C:\code\L\some-service>dotnet --list-sdks
8.0.415 [C:\Program Files\dotnet\sdk]
9.0.307 [C:\Program Files\dotnet\sdk]
10.0.100 [C:\Program Files\dotnet\sdk]
Thoughts? as we are a little perplexed as to why this is failing given that the nuget versions all look correct.
baywet and Frulfumpolsnacky