Skip to content

Standard error:error NU1201: Project is not compatible with netcoreapp2.0 (.NETCoreApp,Version=v2.0). #1347

Closed
@chenjd

Description

@chenjd

On Mac OS 10.14.6.
dotnet version 3.1.100

Using dotnet tool to create a BenchmarkDotNet templates project and run it in console (dotnet new benchmark --console-app). The generated project cann't built and print the error:
error NU1201: Project XXXX is not compatible with netcoreapp2.0 (.NETCoreApp,Version=v2.0).

I think the BenchmarkDotNet version referenced by the project is not the right one. Because I find the BenchmarkDotNet referenced in the .csproj file is 0.11.5, and I change the version to 0.12.0. The error is gone.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions