Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

netcoreapp1.1 support for BenchmarkDotNet.Toolchains.Roslyn #315

Closed
wants to merge 1 commit into from

Conversation

AndreyAkinshin
Copy link
Member

For some reason, I couldn't install BenchmarkDotNet.Toolchains.Roslyn in a new netcoreapp1.1-application without this fix.

@adamsitnik, could you check the fix? Is everything ok?

@dnfclas
Copy link

dnfclas commented Dec 3, 2016

Hi @AndreyAkinshin, I'm your friendly neighborhood .NET Foundation Pull Request Bot (You can call me DNFBOT). Thanks for your contribution!
You've already signed the contribution license agreement. Thanks!

The agreement was validated by .NET Foundation and real humans are currently evaluating your PR.

TTYL, DNFBOT;

@AndreyAkinshin
Copy link
Member Author

AndreyAkinshin commented Dec 3, 2016

Oh, my bad, we should reference BenchmarkDotNet.Toolchains.Roslyn only with net45 like in the samples project:

  "frameworks": {
    "net45": {
      "buildOptions": {
        "define": [ "CLASSIC" ]
      },
      "dependencies": {
        "BenchmarkDotNet.Toolchains.Roslyn": {
          "target": "project"
        }
      }
    },
    "netcoreapp1.1": {
      "buildOptions": {
        "define": [ "CORE" ]
      },
      "dependencies": {
        "BenchmarkDotNet.Core": {
          "target": "project"
        }
      }
    }
  }

We definitely need some templates for typical kinds of projects.

@AndreyAkinshin AndreyAkinshin deleted the netcoreapp11-fix branch December 3, 2016 12:59
@adamsitnik
Copy link
Member

We definitely need some templates for typical kinds of projects.

Our end users can simply install BenchmarkDotNet package, then nuget will resolve BenchmarkDotNet.Toolchains.Roslyn for Classic/Mono and skip it for .NET Core (we have no dependency to this package for our .NET Core build)

"frameworks": {
    "net45": {
      "buildOptions": {
        "define": [ "CLASSIC" ]
      },
      "dependencies": {
        "BenchmarkDotNet.Toolchains.Roslyn": {
          "target": "project"
        }
      }
    },
    "netcoreapp1.1": {
      "buildOptions": {
        "define": [ "CORE" ]
      },
      "dependencies": {
        "BenchmarkDotNet.Core": {
          "target": "project"
        }
      }
    }
  }

@mattwarren
Copy link
Contributor

Hi @AndreyAkinshin, I'm your friendly neighborhood .NET Foundation Pull Request Bot (You can call me DNFBOT). Thanks for your contribution! You've already signed the contribution license agreement. Thanks!

Hmm, I didn't realise this was in place. Does it mean that anyone contributing to BenchmarkDotNet has to sign a contributor license agreement?

@AndreyAkinshin
Copy link
Member Author

@mattwarren, yes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants