You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Trying to do a simple run dotnet run -c Release -f net8.0 --filter System.Collections* --logBuildOutput but it fails with some odd error I can't find referenced in the Troubleshooting docs. I get the same error ALSO if I give it a CoreRun argument pointing at a private build.
// Build Error: Standard output:
Standard error:
C:\Users\idisp\.nuget\packages\system.threading.channels\6.0.0\buildTransitive\netcoreapp2.0\System.Threading.Channels.targets(4,5): error : System.Threading.Channels doesn't support net8.0. Consider updating your TargetFramework to netcoreapp3.1 or later. [C:\Dev\GitHub\dotnet\performance\artifacts\bin\MicroBenchmarks\Release\net8.0\d6511fa9-52e2-4936-a869-9a57d797c813\BenchmarkDotNet.Autogenerated.csproj]
Hello! I am unable to repro this locally. Can you try a run after clearing the top-level artifacts directory, otherwise do you still hit this error with a clean repository clone?
@IDisposable an alternative is to use our python script that is used by the CI. It downloads the latest SDK, adds it to PATH and forwards your args to the micro benchmarks exe:
Activity
IDisposable commentedon Jun 23, 2023
Full logs
LoopedBard3 commentedon Jun 27, 2023
Hello! I am unable to repro this locally. Can you try a run after clearing the top-level artifacts directory, otherwise do you still hit this error with a clean repository clone?
IDisposable commentedon Jun 27, 2023
Yes, did a complete clean and build on both my clone of dotnet/runtime and dotnet/performance and it reproduces every way. :(
LoopedBard3 commentedon Jun 27, 2023
If you run
dotnet --infowhat version(s) are printed? Depending on the versions already installed, you may need to install an updated dotnet version. The net8 versions are available: https://github.com/dotnet/installer#installers-and-binaries if the SDK version fromdotnet --infois not at least 8.0.IDisposable commentedon Jun 27, 2023
LoopedBard3 commentedon Jun 28, 2023
Any ideas @DrewScoggins @caaavik-msft @cincuranet?
The last thing that is coming to mind for me would be to clear the NuGet caches by running
dotnet nuget locals -c all.IDisposable commentedon Jun 28, 2023
The clean of the NuGet cache did it!
IDisposable commentedon Jun 29, 2023
Thanks you!
adamsitnik commentedon Jun 29, 2023
@IDisposable an alternative is to use our python script that is used by the CI. It downloads the latest SDK, adds it to PATH and forwards your args to the micro benchmarks exe:
IDisposable commentedon Jun 29, 2023
Cool, turns out I had to turn off the
pyApp Execution Alias, and that--corerunis case-sensitive (ugh) then this works