{"action":"created","issue":{"url":"https://api.github.com/repos/dotnet/BenchmarkDotNet/issues/327","repository_url":"https://api.github.com/repos/dotnet/BenchmarkDotNet","labels_url":"https://api.github.com/repos/dotnet/BenchmarkDotNet/issues/327/labels{/name}","comments_url":"https://api.github.com/repos/dotnet/BenchmarkDotNet/issues/327/comments","events_url":"https://api.github.com/repos/dotnet/BenchmarkDotNet/issues/327/events","html_url":"https://github.com/dotnet/BenchmarkDotNet/issues/327","id":195857462,"number":327,"title":"[Bug]RoslynGenerator: wrong code if Toolchain set explicitly","user":{"login":"ig-sinicyn","id":11225241,"avatar_url":"https://avatars.githubusercontent.com/u/11225241?v=3","gravatar_id":"","url":"https://api.github.com/users/ig-sinicyn","html_url":"https://github.com/ig-sinicyn","followers_url":"https://api.github.com/users/ig-sinicyn/followers","following_url":"https://api.github.com/users/ig-sinicyn/following{/other_user}","gists_url":"https://api.github.com/users/ig-sinicyn/gists{/gist_id}","starred_url":"https://api.github.com/users/ig-sinicyn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ig-sinicyn/subscriptions","organizations_url":"https://api.github.com/users/ig-sinicyn/orgs","repos_url":"https://api.github.com/users/ig-sinicyn/repos","events_url":"https://api.github.com/users/ig-sinicyn/events{/privacy}","received_events_url":"https://api.github.com/users/ig-sinicyn/received_events","type":"User","site_admin":false},"labels":[{"id":450479639,"url":"https://api.github.com/repos/dotnet/BenchmarkDotNet/labels/Area:Toolchains","name":"Area:Toolchains","color":"5319e7","default":false},{"id":52535226,"url":"https://api.github.com/repos/dotnet/BenchmarkDotNet/labels/bug","name":"bug","color":"fc2929","default":true}],"state":"open","locked":false,"assignee":{"login":"adamsitnik","id":6011991,"avatar_url":"https://avatars.githubusercontent.com/u/6011991?v=3","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},"assignees":[{"login":"adamsitnik","id":6011991,"avatar_url":"https://avatars.githubusercontent.com/u/6011991?v=3","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}],"milestone":{"url":"https://api.github.com/repos/dotnet/BenchmarkDotNet/milestones/6","html_url":"https://github.com/dotnet/BenchmarkDotNet/milestone/6","labels_url":"https://api.github.com/repos/dotnet/BenchmarkDotNet/milestones/6/labels","id":1752553,"number":6,"title":"v0.10.x","description":"A temporary milestone that keep all the issues which should be implemented in `v0.10.x`.","creator":{"login":"AndreyAkinshin","id":2259237,"avatar_url":"https://avatars.githubusercontent.com/u/2259237?v=3","gravatar_id":"","url":"https://api.github.com/users/AndreyAkinshin","html_url":"https://github.com/AndreyAkinshin","followers_url":"https://api.github.com/users/AndreyAkinshin/followers","following_url":"https://api.github.com/users/AndreyAkinshin/following{/other_user}","gists_url":"https://api.github.com/users/AndreyAkinshin/gists{/gist_id}","starred_url":"https://api.github.com/users/AndreyAkinshin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AndreyAkinshin/subscriptions","organizations_url":"https://api.github.com/users/AndreyAkinshin/orgs","repos_url":"https://api.github.com/users/AndreyAkinshin/repos","events_url":"https://api.github.com/users/AndreyAkinshin/events{/privacy}","received_events_url":"https://api.github.com/users/AndreyAkinshin/received_events","type":"User","site_admin":false},"open_issues":30,"closed_issues":0,"state":"open","created_at":"2016-05-06T23:03:58Z","updated_at":"2016-12-15T16:58:57Z","due_on":null,"closed_at":null},"comments":1,"created_at":"2016-12-15T16:54:22Z","updated_at":"2016-12-15T17:18:20Z","closed_at":null,"body":"BDN 10.1, code:\r\n```cs\r\n\tpublic class Program\r\n\t{\r\n\t\tpublic static void Main(string[] args)\r\n\t\t{\r\n\t\t\tvar c = DefaultConfig.Instance.With(\r\n\t\t\t\tJob.Default.With(ClassicToolchain.Instance));\r\n\r\n\t\t\tBenchmarkRunner.Run<Program>(c);\r\n\r\n\t\t\tConsole.ReadKey();\r\n\t\t}\r\n\r\n\t\t[Benchmark]\r\n\t\tpublic void Test() => Thread.Sleep(1);\r\n\r\n\t\t[Benchmark]\r\n\t\tpublic void Test2() => Thread.Sleep(0);\r\n\t}\r\n```\r\n\r\noutput:\r\n```\r\n// *** Build ***\r\nBuildScript: C:\\Users\\igors\\documents\\visual studio 2017\\Projects\\ConsoleApp2\\ConsoleApp2\\bin\\Release\\BDN.Generated.bat\r\nCS0234: The type or namespace name 'RoslynToolchain' does not exist in the namespace 'BenchmarkDotNet.Toolchains' (are you missing an assembly reference?)\r\n// Result = Failure\r\n```\r\n[log.zip](https://github.com/dotnet/BenchmarkDotNet/files/655265/log.zip)\r\n\r\nP.S. Possible StackOverflow at [ToolchainExtensions](https://github.com/dotnet/BenchmarkDotNet/blob/0231157fb11d054fcb99474fbba999be22aa7fc2/src/BenchmarkDotNet/Toolchains/ToolchainExtensions.cs#L16)\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/dotnet/BenchmarkDotNet/issues/comments/267386230","html_url":"https://github.com/dotnet/BenchmarkDotNet/issues/327#issuecomment-267386230","issue_url":"https://api.github.com/repos/dotnet/BenchmarkDotNet/issues/327","id":267386230,"user":{"login":"ig-sinicyn","id":11225241,"avatar_url":"https://avatars.githubusercontent.com/u/11225241?v=3","gravatar_id":"","url":"https://api.github.com/users/ig-sinicyn","html_url":"https://github.com/ig-sinicyn","followers_url":"https://api.github.com/users/ig-sinicyn/followers","following_url":"https://api.github.com/users/ig-sinicyn/following{/other_user}","gists_url":"https://api.github.com/users/ig-sinicyn/gists{/gist_id}","starred_url":"https://api.github.com/users/ig-sinicyn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ig-sinicyn/subscriptions","organizations_url":"https://api.github.com/users/ig-sinicyn/orgs","repos_url":"https://api.github.com/users/ig-sinicyn/repos","events_url":"https://api.github.com/users/ig-sinicyn/events{/privacy}","received_events_url":"https://api.github.com/users/ig-sinicyn/received_events","type":"User","site_admin":false},"created_at":"2016-12-15T17:18:20Z","updated_at":"2016-12-15T17:18:20Z","body":"**UPD:** `Net46Toolchain` fails too but the error is different:\r\n```cs\r\n\t\tpublic static void Main(string[] args)\r\n\t\t{\r\n\t\t\tvar bindingFlags = BindingFlags.Instance | BindingFlags.Public | BindingFlags.NonPublic;\r\n\t\t\tvar toolchain =(Net46Toolchain)typeof(Net46Toolchain)\r\n\t\t\t\t.GetConstructors(bindingFlags)[0]\r\n\t\t\t\t.Invoke(new object[0]);\r\n\t\t\tConsole.WriteLine(ClassicToolchain.Instance.GetType());\r\n\t\t\tvar c = DefaultConfig.Instance.With(\r\n\t\t\t\tJob.Default.With(toolchain));\r\n\r\n\t\t\tBenchmarkRunner.Run<Program>(c);\r\n\r\n\t\t\tConsole.ReadKey();\r\n\t\t}\r\n```\r\n=>\r\n```\r\n// *** Build ***\r\n// Result = Failure\r\n// Exception: dotnet restore has failed\r\n```\r\n(Fresh windows 10 + VS 2017 RC installed).\r\n[log.zip](https://github.com/dotnet/BenchmarkDotNet/files/655372/log.zip)\r\n"}}
{"actor":{"display_login":"ig-sinicyn"}}