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
When trying to run net5.0 benchmarks using that SDK I'm getting the following failure:
BenchmarkDotNet requires dotnet cli to be installed or path to local dotnet cli provided in explicit way using `--cli` argument, benchmark 'HeapSortBenchmarks.PriorityQueue: DefaultJob [Size=30]' will not be executed
I suspect the issue is due to the fact that the snap installation of the sdk relies on symlinks:
$ ls -l `which dotnet`
lrwxrwxrwx 1 root root 17 Oct 23 13:33 /snap/bin/dotnet -> dotnet-sdk.dotnet
When I try to run the benchmarks using
$ dotnet run -c Release --cli dotnet
I'm getting a similar error:
The provided CliPath "dotnet" does NOT exist.
However if I pass the underlying file:
$ dotnet run -c Release --cli /snap/bin/dotnet-sdk.dotnet
The benchmark executes without issue.
The relevant code doing the detection is here. It is not clear to me whether it is an issue with the heuristic or a System.Diagnostics.Process bug related to symlinks. cc @adamsitnik
The text was updated successfully, but these errors were encountered:
I tried installing .NET 5 RC2 sdk on Ubuntu 20.04 following the instructions listed here.
When trying to run
net5.0
benchmarks using that SDK I'm getting the following failure:I suspect the issue is due to the fact that the snap installation of the sdk relies on symlinks:
When I try to run the benchmarks using
I'm getting a similar error:
However if I pass the underlying file:
The benchmark executes without issue.
The relevant code doing the detection is here. It is not clear to me whether it is an issue with the heuristic or a System.Diagnostics.Process bug related to symlinks. cc @adamsitnik
The text was updated successfully, but these errors were encountered: