Closed
Description
Hi there. I've tried to run BenchmarkDotNet Tool within Docker container. Here is my Dockerfile
FROM mcr.microsoft.com/dotnet/core/sdk:3.1
WORKDIR /src
COPY . .
ENV PATH="/root/.dotnet/tools:${PATH}"
RUN dotnet tool install BenchmarkDotNet.Tool --global --framework netcoreapp3.1
WORKDIR /src/bin/publish
When I enter into the container and try to run dotnet benchmark --help
I get the following error:
root@77613ae18c81:/src/bin/publish# dotnet benchmark --help
It was not possible to find any compatible framework version
The framework 'Microsoft.NETCore.App', version '2.1.0' was not found.
- The following frameworks were found:
3.1.10 at [/usr/share/dotnet/shared/Microsoft.NETCore.App]
You can resolve the problem by installing the specified framework and/or SDK.
The specified framework can be found at:
- https://aka.ms/dotnet-core-applaunch?framework=Microsoft.NETCore.App&framework_version=2.1.0&arch=x64&rid=debian.10-x64
Has anybody else tried to run the tool within a container? Is it a configuration issue of SDK or the tool? As you can see I didn't put any benchmarks into the container, I just try to run the tool within it.
Metadata
Metadata
Assignees
Labels
No labels