{"action":"created","issue":{"url":"https://api.github.com/repos/dotnet/BenchmarkDotNet/issues/993","repository_url":"https://api.github.com/repos/dotnet/BenchmarkDotNet","labels_url":"https://api.github.com/repos/dotnet/BenchmarkDotNet/issues/993/labels{/name}","comments_url":"https://api.github.com/repos/dotnet/BenchmarkDotNet/issues/993/comments","events_url":"https://api.github.com/repos/dotnet/BenchmarkDotNet/issues/993/events","html_url":"https://github.com/dotnet/BenchmarkDotNet/issues/993","id":394799029,"node_id":"MDU6SXNzdWUzOTQ3OTkwMjk=","number":993,"title":"Cannot run Clr and Core jobs at the same time","user":{"login":"kmadof","id":1680172,"node_id":"MDQ6VXNlcjE2ODAxNzI=","avatar_url":"https://avatars0.githubusercontent.com/u/1680172?v=4","gravatar_id":"","url":"https://api.github.com/users/kmadof","html_url":"https://github.com/kmadof","followers_url":"https://api.github.com/users/kmadof/followers","following_url":"https://api.github.com/users/kmadof/following{/other_user}","gists_url":"https://api.github.com/users/kmadof/gists{/gist_id}","starred_url":"https://api.github.com/users/kmadof/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kmadof/subscriptions","organizations_url":"https://api.github.com/users/kmadof/orgs","repos_url":"https://api.github.com/users/kmadof/repos","events_url":"https://api.github.com/users/kmadof/events{/privacy}","received_events_url":"https://api.github.com/users/kmadof/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-12-29T14:11:17Z","updated_at":"2018-12-30T17:08:01Z","closed_at":"2018-12-30T17:08:01Z","author_association":"NONE","body":"Hi\r\n\r\nFirst I tried to run Core and Clr jobs on .net core project but in this case only Core job finished successfully.\r\n\r\n``` ini\r\n\r\nBenchmarkDotNet=v0.11.3, OS=Windows 10.0.17134.472 (1803/April2018Update/Redstone4)\r\nIntel Core i7-5500U CPU 2.40GHz (Broadwell), 1 CPU, 4 logical and 2 physical cores\r\n.NET Core SDK=2.2.100\r\n  [Host] : .NET Core 2.2.0 (CoreCLR 4.6.27110.04, CoreFX 4.6.27110.04), 64bit RyuJIT\r\n  Core   : .NET Core 2.2.0 (CoreCLR 4.6.27110.04, CoreFX 4.6.27110.04), 64bit RyuJIT\r\n\r\n\r\n```\r\n|  Method |  Job | Runtime |     Mean |    Error |   StdDev |   Median |\r\n|-------- |----- |-------- |---------:|---------:|---------:|---------:|\r\n| Replace |  Clr |     Clr |       NA |       NA |       NA |       NA |\r\n| Replace | Core |    Core | 20.38 us | 1.389 us | 4.095 us | 18.77 us |\r\n\r\nBenchmarks with issues:\r\n  StringBenchmark.Replace: Clr(Runtime=Clr)\r\n\r\nWhen I checked logs and I found message that project is not compatible with net 472:\r\n\r\n// Build Exception: Standard output: \r\n   Restoring packages for C:\\Dev\\TheCodeManual\\StringPerformance\\StringPerformanceComparison\\bin\\Release\\netcoreapp2.2\\68bc1c9b-f1a8-4730-8f05-3d8e1e81d768\\BenchmarkDotNet.Autogenerated.csproj...\r\n  Restore completed in 72.18 ms for C:\\Dev\\TheCodeManual\\StringPerformance\\StringPerformanceComparison\\StringPerformanceComparison.csproj.\r\nC:\\Dev\\TheCodeManual\\StringPerformance\\StringPerformanceComparison\\bin\\Release\\netcoreapp2.2\\68bc1c9b-f1a8-4730-8f05-3d8e1e81d768\\BenchmarkDotNet.Autogenerated.csproj : error NU1201: Project StringPerformanceComparison is not compatible with net472 (.NETFramework,Version=v4.7.2). Project StringPerformanceComparison supports: netcoreapp2.2 (.NETCoreApp,Version=v2.2)\r\nC:\\Dev\\TheCodeManual\\StringPerformance\\StringPerformanceComparison\\bin\\Release\\netcoreapp2.2\\68bc1c9b-f1a8-4730-8f05-3d8e1e81d768\\BenchmarkDotNet.Autogenerated.csproj : error NU1201: Project StringPerformanceComparison is not compatible with net472 (.NETFramework,Version=v4.7.2) / win7-x64. Project StringPerformanceComparison supports: netcoreapp2.2 (.NETCoreApp,Version=v2.2)\r\n  Restore failed in 194.61 ms for C:\\Dev\\TheCodeManual\\StringPerformance\\StringPerformanceComparison\\bin\\Release\\netcoreapp2.2\\68bc1c9b-f1a8-4730-8f05-3d8e1e81d768\\BenchmarkDotNet.Autogenerated.csproj.\r\n\r\n\r\nSo I tried slightly different approach. I created full .NET framework console app and check what happens. It ended in similar fashion but this time Clr job finished successfully.\r\n\r\n``` ini\r\n\r\nBenchmarkDotNet=v0.11.3, OS=Windows 10.0.17134.472 (1803/April2018Update/Redstone4)\r\nIntel Core i7-5500U CPU 2.40GHz (Broadwell), 1 CPU, 4 logical and 2 physical cores\r\n  [Host] : .NET Framework 4.7.2 (CLR 4.0.30319.42000), 32bit LegacyJIT-v4.7.3260.0\r\n  Clr    : .NET Framework 4.7.2 (CLR 4.0.30319.42000), 32bit LegacyJIT-v4.7.3260.0\r\n\r\n\r\n```\r\n|  Method |  Job | Runtime |     Mean |     Error |   StdDev |\r\n|-------- |----- |-------- |---------:|----------:|---------:|\r\n| Replace |  Clr |     Clr | 16.49 us | 0.6754 us | 1.981 us |\r\n| Replace | Core |    Core |       NA |        NA |       NA |\r\n\r\nBenchmarks with issues:\r\n  StringBenchmark.Replace: Core(Runtime=Core)\r\n\r\n\r\nAnd this time there were confilcts with resolving proper dependencies due to different versons:\r\n\r\n// Build Exception: Standard output: \r\n Microsoft (R) Build Engine version 15.9.20+g88f5fadfbe for .NET Core\r\nCopyright (C) Microsoft Corporation. All rights reserved.\r\n\r\n  Restore completed in 45.65 ms for C:\\Dev\\TheCodeManual\\StringPerformance\\StringPerformanceComparisonFull\\bin\\Release\\f30272d9-c3c3-4011-8f75-7264f756e91d\\BenchmarkDotNet.Autogenerated.csproj.\r\nC:\\Program Files\\dotnet\\sdk\\2.2.100\\Microsoft.Common.CurrentVersion.targets(2110,5): warning MSB3277: Found conflicts between different versions of \"System.Collections.Immutable\" that could not be resolved.  These reference conflicts are listed in the build log when log verbosity is set to detailed. [C:\\Dev\\TheCodeManual\\StringPerformance\\StringPerformanceComparisonFull\\bin\\Release\\f30272d9-c3c3-4011-8f75-7264f756e91d\\BenchmarkDotNet.Autogenerated.csproj]\r\nC:\\Program Files\\dotnet\\sdk\\2.2.100\\Microsoft.Common.CurrentVersion.targets(2110,5): warning MSB3277: Found conflicts between different versions of \"System.Reflection.Metadata\" that could not be resolved.  These reference conflicts are listed in the build log when log verbosity is set to detailed. \r\n\r\nDid I do something worng or there is an issue on dotnetbenchmark side?"},"comment":{"url":"https://api.github.com/repos/dotnet/BenchmarkDotNet/issues/comments/450573952","html_url":"https://github.com/dotnet/BenchmarkDotNet/issues/993#issuecomment-450573952","issue_url":"https://api.github.com/repos/dotnet/BenchmarkDotNet/issues/993","id":450573952,"node_id":"MDEyOklzc3VlQ29tbWVudDQ1MDU3Mzk1Mg==","user":{"login":"adamsitnik","id":6011991,"node_id":"MDQ6VXNlcjYwMTE5OTE=","avatar_url":"https://avatars2.githubusercontent.com/u/6011991?v=4","gravatar_id":"","url":"https://api.github.com/users/adamsitnik","html_url":"https://github.com/adamsitnik","followers_url":"https://api.github.com/users/adamsitnik/followers","following_url":"https://api.github.com/users/adamsitnik/following{/other_user}","gists_url":"https://api.github.com/users/adamsitnik/gists{/gist_id}","starred_url":"https://api.github.com/users/adamsitnik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adamsitnik/subscriptions","organizations_url":"https://api.github.com/users/adamsitnik/orgs","repos_url":"https://api.github.com/users/adamsitnik/repos","events_url":"https://api.github.com/users/adamsitnik/events{/privacy}","received_events_url":"https://api.github.com/users/adamsitnik/received_events","type":"User","site_admin":false},"created_at":"2018-12-30T17:08:01Z","updated_at":"2018-12-30T17:08:01Z","author_association":"MEMBER","body":"Hi @kmadof \r\n\r\n```log\r\nProject StringPerformanceComparison is not compatible with net472 (.NETFramework,Version=v4.7.2). Project StringPerformanceComparison supports: netcoreapp2.2 (.NETCoreApp,Version=v2.2)\r\n```\r\n\r\nTo run projects for .NET and .NET Core the project that defines benchmarks must target both frameworks. In your case it should be:\r\n\r\n```xml\r\n<TargetFrameworks>netcoreapp2.2;net472</TargetFrameworks>\r\n```\r\n\r\nPlease feel free to reopen the issue if it does not help."}}
{"actor":{"display_login":"adamsitnik"}}