Skip to content

marklam/paketAndBenchmarkdotnet

Repository files navigation

Repro case for BenchmarkDotNet issue

To reproduce

dotnet tool restore
dotnet paket install
dotnet run --project Bench --configuration Release

or for the F#-averse:

dotnet tool restore
dotnet paket install
dotnet run --project BenchCS --configuration Release

Example output

c:\git\temp\paketAndBenchmarkdotnet\Bench>dotnet run --configuration Release
// Validating benchmarks:
// ***** BenchmarkRunner: Start   *****
// ***** Found 4 benchmark(s) in total *****
// ***** Building 1 exe(s) in Parallel: Start   *****
// start dotnet  restore /p:UseSharedCompilation=false /p:BuildInParallel=false /m:1 /p:Deterministic=true /p:Optimize=true in c:\git\temp\paketAndBenchmarkdotnet\Bench\bin\Release\net6.0\87e0a618-6df2-42d7-8fa2-86b4bed3a508
// command took 1.8 sec and exited with 1
// ***** Done, took 00:00:01 (1.96 sec)   *****
// Found 4 benchmarks:
//   Md5VsSha256.Sha256: .NET 6.0(Runtime=.NET 6.0) [N=1000]
//   Md5VsSha256.Md5: .NET 6.0(Runtime=.NET 6.0) [N=1000]
//   Md5VsSha256.Sha256: .NET 6.0(Runtime=.NET 6.0) [N=10000]
//   Md5VsSha256.Md5: .NET 6.0(Runtime=.NET 6.0) [N=10000]

Setup power plan (GUID: 8c5e7fda-e8bf-4a96-9a85-a6e23a8c635c FriendlyName: High performance)
// Build Error: Standard output:

 Standard error:
   Determining projects to restore...
c:\git\temp\paketAndBenchmarkdotnet\Bench\bin\Release\net6.0\87e0a618-6df2-42d7-8fa2-86b4bed3a508\BenchmarkDotNet.Autogenerated.csproj : warning NU1604: Project dependency %(PaketReferencesFileLinesInfo.PackageName) does not contain an inclusive lower bound. Include a lower bound in the dependency version to ensure consistent restore results.
c:\git\temp\paketAndBenchmarkdotnet\Bench\bin\Release\net6.0\87e0a618-6df2-42d7-8fa2-86b4bed3a508\BenchmarkDotNet.Autogenerated.csproj : error NU1101: Unable to find package %(PaketReferencesFileLinesInfo.PackageName). No packages exist with this id in source(s): C:\Program Files\dotnet\library-packs, Microsoft Visual Studio Offline Packages, nuget.org
  Failed to restore c:\git\temp\paketAndBenchmarkdotnet\Bench\bin\Release\net6.0\87e0a618-6df2-42d7-8fa2-86b4bed3a508\BenchmarkDotNet.Autogenerated.csproj (in 733 ms).
  1 of 2 projects are up-to-date for restore.

// BenchmarkDotNet has failed to build the auto-generated boilerplate code.
// It can be found in c:\git\temp\paketAndBenchmarkdotnet\Bench\bin\Release\net6.0\87e0a618-6df2-42d7-8fa2-86b4bed3a508
// Please follow the troubleshooting guide: https://benchmarkdotnet.org/articles/guides/troubleshooting.html

About

BencmarkDotNet vs Paket issue repro

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published