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

Borken compilation for net46 projects when .NET Framework 4.7 is installed #500

Closed
AndreyAkinshin opened this Issue Jul 21, 2017 · 0 comments

Comments

Projects
None yet
2 participants
@AndreyAkinshin
Member

AndreyAkinshin commented Jul 21, 2017

Environment: Windows with .NET Framework 4.7, net46 project, Job.Clr.
Failed test: MultipleRuntimesTest.SingleBenchmarkCanBeExecutedForMultpleRuntimes

BenchmarkDotNet.IntegrationTests.MultipleRuntimesTest.SingleBenchmarkCanBeExecutedForMultpleRuntimes

Assert.True() Failure
Expected: True
Actual:   False
   at BenchmarkDotNet.IntegrationTests.MultipleRuntimesTest.SingleBenchmarkCanBeExecutedForMultpleRuntimes() in W:\Work\BenchmarkDotNet\tests\BenchmarkDotNet.IntegrationTests\MultipleRuntimesTest.cs:line 42



// ***** BenchmarkRunner: Start   *****
// Found benchmarks:
//   C.B: Job-FPWWYB(Runtime=Clr, LaunchCount=1, RunStrategy=ColdStart, TargetCount=1, UnrollFactor=1, WarmupCount=1)
//   C.B: Job-LSPYTK(Runtime=Core, LaunchCount=1, RunStrategy=ColdStart, TargetCount=1, UnrollFactor=1, WarmupCount=1)

// Validating benchmarks:
No exporters defined, results will not be persisted.
// **************************
// Benchmark: C.B: Job-FPWWYB(Runtime=Clr, LaunchCount=1, RunStrategy=ColdStart, TargetCount=1, UnrollFactor=1, WarmupCount=1)
// *** Generate *** 
// Result = Success
// BinariesDirectoryPath = W:\Work\BenchmarkDotNet\tests\BenchmarkDotNet.IntegrationTests\bin\Release\netcoreapp1.1\07dceaa7-dcf7-4262-ac8c-3b62ae96a0ff\bin\Release\net47

// *** Build ***
// dotnet restore took 1.34s
// dotnet build took 0.47s
// Result = Failure
// Exception: Microsoft (R) Build Engine version 15.1.1012.6693
Copyright (C) Microsoft Corporation. All rights reserved.

C:\Program Files\dotnet\sdk\1.0.4\Microsoft.Common.CurrentVersion.targets(1111,5): error MSB3644: The reference assemblies for framework ".NETFramework,Version=v4.7" were not found. To resolve this, install the SDK or Targeting Pack for this framework version or retarget your application to a version of the framework for which you have the SDK or Targeting Pack installed. Note that assemblies will be resolved from the Global Assembly Cache (GAC) and will be used in place of reference assemblies. Therefore your assembly may not be correctly targeted for the framework you intend. [W:\Work\BenchmarkDotNet\tests\BenchmarkDotNet.IntegrationTests\bin\Release\netcoreapp1.1\07dceaa7-dcf7-4262-ac8c-3b62ae96a0ff\BenchmarkDotNet.Autogenerated.csproj]

Build FAILED.

C:\Program Files\dotnet\sdk\1.0.4\Microsoft.Common.CurrentVersion.targets(1111,5): error MSB3644: The reference assemblies for framework ".NETFramework,Version=v4.7" were not found. To resolve this, install the SDK or Targeting Pack for this framework version or retarget your application to a version of the framework for which you have the SDK or Targeting Pack installed. Note that assemblies will be resolved from the Global Assembly Cache (GAC) and will be used in place of reference assemblies. Therefore your assembly may not be correctly targeted for the framework you intend. [W:\Work\BenchmarkDotNet\tests\BenchmarkDotNet.IntegrationTests\bin\Release\netcoreapp1.1\07dceaa7-dcf7-4262-ac8c-3b62ae96a0ff\BenchmarkDotNet.Autogenerated.csproj]
    0 Warning(s)
    1 Error(s)

Time Elapsed 00:00:00.30

@adamsitnik, could you take a look?

@adamsitnik adamsitnik closed this in 8b2c7e9 Sep 5, 2017

@AndreyAkinshin AndreyAkinshin added this to the v0.10.10 milestone Sep 5, 2017

alinasmirnova added a commit to alinasmirnova/BenchmarkDotNet that referenced this issue Sep 22, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment