-
Notifications
You must be signed in to change notification settings - Fork 287
Closed
Description
I'm trying to run benchmark with --cli options as outlined here https://github.com/dotnet/performance/blob/master/src/benchmarks/micro/README.md#dotnet-cli
However if I don't have installed correct machine wide sdk I get error:
D:\git\performance\src\benchmarks\micro (master -> origin)
λ dotnet run -c Release -f netcoreapp3.0 -- --join --filter System.Collections*.Dictionary* *.Perf_Dictionary.* --cli ..\..\..\..\netcorepreviewsdk\dotnet.exe
C:\Program Files\dotnet\sdk\2.2.100\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.TargetFrameworkInference.targets(137,5): error NETSDK1045: The current .NET SDK does not support targeting .NET Core 3.0. Either target .NET Core 2.2 or lower, or use a version of the .NET SDK that supports .NET Core 3.0. [D:\git\performance\src\benchmarks\micro\MicroBenchmarks.csproj]
The build failed. Please fix the build errors and run again.
But it works if I use downloaded(non machine wide) sdk:
D:\git\performance\src\benchmarks\micro (master -> origin)
λ ..\..\..\..\netcorepreviewsdk\dotnet.exe run -c Release -f netcoreapp3.0 -- --join --filter System.Collections*.Dictionary* *.Perf_Dictionary.* --cli ..\..\..\..\netcorepreviewsdk\dotnet.exe
// Validating benchmarks:
// ***** BenchmarkRunner: Start *****
// ***** Building 1 exe(s) in Parallel: Start *****
Is it expected?If so I propose to update guide with this scenario(I don't like install all preview machine wide), let me know if I can do a PR(if it makes sense to you).
/cc @adamsitnik @danmosemsft
Metadata
Metadata
Assignees
Labels
No labels