{"action":"created","issue":{"url":"https://api.github.com/repos/dotnet/orleans/issues/5038","repository_url":"https://api.github.com/repos/dotnet/orleans","labels_url":"https://api.github.com/repos/dotnet/orleans/issues/5038/labels{/name}","comments_url":"https://api.github.com/repos/dotnet/orleans/issues/5038/comments","events_url":"https://api.github.com/repos/dotnet/orleans/issues/5038/events","html_url":"https://github.com/dotnet/orleans/issues/5038","id":364774282,"node_id":"MDU6SXNzdWUzNjQ3NzQyODI=","number":5038,"title":"Build is failed while using Microsoft.AspNetCore.SignalR.Client in a grain","user":{"login":"arsamigullin","id":17814411,"node_id":"MDQ6VXNlcjE3ODE0NDEx","avatar_url":"https://avatars3.githubusercontent.com/u/17814411?v=4","gravatar_id":"","url":"https://api.github.com/users/arsamigullin","html_url":"https://github.com/arsamigullin","followers_url":"https://api.github.com/users/arsamigullin/followers","following_url":"https://api.github.com/users/arsamigullin/following{/other_user}","gists_url":"https://api.github.com/users/arsamigullin/gists{/gist_id}","starred_url":"https://api.github.com/users/arsamigullin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/arsamigullin/subscriptions","organizations_url":"https://api.github.com/users/arsamigullin/orgs","repos_url":"https://api.github.com/users/arsamigullin/repos","events_url":"https://api.github.com/users/arsamigullin/events{/privacy}","received_events_url":"https://api.github.com/users/arsamigullin/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2018-09-28T07:34:21Z","updated_at":"2018-09-28T08:49:22Z","closed_at":null,"author_association":"NONE","body":"I want each grain to be a SignalR client. In each grain, I have a HubConnection instance.  This is a code of grain :\r\n```\r\npublic class MyGrain : Grain, IMyGrain\r\n{\r\n\tprivate string _accessToken;\r\n\tprivate HubConnection connection;\r\n\tprivate MyHttpClient = _httpClient; // initialized in a constructor (constructor is omitted)\r\n\t\r\n\tpublic async Task Login(string username, string password)\r\n\t{\r\n\t\t//\r\n\t\t//... some stuff\r\n\t\t//\r\n\t\tvar response = await _httpClient.Login(username, password);\r\n\t\t_accessToken = response.AccessToken;\r\n\t\tconnection = new HubConnectionBuilder()\r\n\t\t// having this overload of WithUrl the code compilation is successful\r\n\t\t.WithUrl(\"https://some_server/eventpipelinehub\") //row 17\r\n\t\t// having this overload of WithUrl the code compilation is failed\r\n        .WithUrl(\"https://some_server/eventpipelinehub\", options => options.AccessTokenProvider = () => Task.FromResult(_accessToken)) // row 19\r\n        .Build();\r\n\t}\r\n}\r\n\r\n```\r\n\r\nThe code above is compiled successfully only when I have an overload of the WithUrl method as shown in row 17.\r\nBut I need another overload and the code compilation is failed when I have an overload of WithUrl method as shown in row 19 with the following message:\r\nError\tMSB3073\tThe command \"\"dotnet\" \"C:\\Users\\UserName\\.nuget\\packages\\microsoft.orleans.orleanscodegenerator.build\\2.1.0-rc2\\build\\..\\tasks\\netcoreapp2.1\\Orleans.CodeGeneration.Build.dll\" \"@C:\\projects\\myProjectName\\\\_obj\\Debug\\Bots\\netcoreapp2.1\\codegen\\Bots.orleans.g.args.txt\"\" exited with code 3.\tBots\tC:\\Users\\UserName\\.nuget\\packages\\microsoft.orleans.orleanscodegenerator.build\\2.1.0-rc2\\build\\Microsoft.Orleans.OrleansCodeGenerator.Build.targets\t82 \r\n\r\nI saw a similar issue https://github.com/dotnet/orleans/issues/2896 and I saw ReubenBond added new Code Generator and tried to compile the code with Microsoft.Orleans.OrleansCodeGenerator.Build package of versions 2.05 and 2.1.0-rc2 (as). The error still persists. In the project properties, the Platform Target is Any CPU\r\n\r\nThis is what I have on my machine:\r\nMS Windows 10 x64\r\nMicrosoft.AspNetCore.SignalR.Client 1.0.3\r\nMicrosoft.Orleans.OrleansCodeGenerator.Build 2.1.0-rc2 and 2.0.5\r\nMicrosoft.Orleans.Core 2.0.3\r\nC:\\Users\\UserName>dotnet --info\r\n.NET Core SDK (reflecting any global.json):\r\n Version:   2.1.402\r\n Commit:    3599f217f4\r\n\r\nRuntime Environment:\r\n OS Name:     Windows\r\n OS Version:  10.0.17134\r\n OS Platform: Windows\r\n RID:         win10-x64\r\n Base Path:   C:\\Program Files\\dotnet\\sdk\\2.1.402\\\r\n\r\nHost (useful for support):\r\n  Version: 2.1.4\r\n  Commit:  85255dde3e\r\n\r\n.NET Core SDKs installed:\r\n  1.1.7 [C:\\Program Files\\dotnet\\sdk]\r\n  1.1.9 [C:\\Program Files\\dotnet\\sdk]\r\n  1.1.10 [C:\\Program Files\\dotnet\\sdk]\r\n  2.1.2 [C:\\Program Files\\dotnet\\sdk]\r\n  2.1.4 [C:\\Program Files\\dotnet\\sdk]\r\n  2.1.200 [C:\\Program Files\\dotnet\\sdk]\r\n  2.1.201 [C:\\Program Files\\dotnet\\sdk]\r\n  2.1.202 [C:\\Program Files\\dotnet\\sdk]\r\n  2.1.301 [C:\\Program Files\\dotnet\\sdk]\r\n  2.1.401 [C:\\Program Files\\dotnet\\sdk]\r\n  2.1.402 [C:\\Program Files\\dotnet\\sdk]\r\n\r\n.NET Core runtimes installed:\r\n  Microsoft.AspNetCore.All 2.1.1 [C:\\Program Files\\dotnet\\shared\\Microsoft.AspNetCore.All]\r\n  Microsoft.AspNetCore.All 2.1.3 [C:\\Program Files\\dotnet\\shared\\Microsoft.AspNetCore.All]\r\n  Microsoft.AspNetCore.All 2.1.4 [C:\\Program Files\\dotnet\\shared\\Microsoft.AspNetCore.All]\r\n  Microsoft.AspNetCore.App 2.1.1 [C:\\Program Files\\dotnet\\shared\\Microsoft.AspNetCore.App]\r\n  Microsoft.AspNetCore.App 2.1.3 [C:\\Program Files\\dotnet\\shared\\Microsoft.AspNetCore.App]\r\n  Microsoft.AspNetCore.App 2.1.4 [C:\\Program Files\\dotnet\\shared\\Microsoft.AspNetCore.App]\r\n  Microsoft.NETCore.App 1.0.9 [C:\\Program Files\\dotnet\\shared\\Microsoft.NETCore.App]\r\n  Microsoft.NETCore.App 1.0.11 [C:\\Program Files\\dotnet\\shared\\Microsoft.NETCore.App]\r\n  Microsoft.NETCore.App 1.0.12 [C:\\Program Files\\dotnet\\shared\\Microsoft.NETCore.App]\r\n  Microsoft.NETCore.App 1.1.6 [C:\\Program Files\\dotnet\\shared\\Microsoft.NETCore.App]\r\n  Microsoft.NETCore.App 1.1.8 [C:\\Program Files\\dotnet\\shared\\Microsoft.NETCore.App]\r\n  Microsoft.NETCore.App 1.1.9 [C:\\Program Files\\dotnet\\shared\\Microsoft.NETCore.App]\r\n  Microsoft.NETCore.App 2.0.3 [C:\\Program Files\\dotnet\\shared\\Microsoft.NETCore.App]\r\n  Microsoft.NETCore.App 2.0.5 [C:\\Program Files\\dotnet\\shared\\Microsoft.NETCore.App]\r\n  Microsoft.NETCore.App 2.0.7 [C:\\Program Files\\dotnet\\shared\\Microsoft.NETCore.App]\r\n  Microsoft.NETCore.App 2.0.9 [C:\\Program Files\\dotnet\\shared\\Microsoft.NETCore.App]\r\n  Microsoft.NETCore.App 2.1.1 [C:\\Program Files\\dotnet\\shared\\Microsoft.NETCore.App]\r\n  Microsoft.NETCore.App 2.1.3 [C:\\Program Files\\dotnet\\shared\\Microsoft.NETCore.App]\r\n  Microsoft.NETCore.App 2.1.4 [C:\\Program Files\\dotnet\\shared\\Microsoft.NETCore.App]\r\n\r\nTo install additional .NET Core runtimes or SDKs:\r\n  https://aka.ms/dotnet-download\r\n"},"comment":{"url":"https://api.github.com/repos/dotnet/orleans/issues/comments/425367985","html_url":"https://github.com/dotnet/orleans/issues/5038#issuecomment-425367985","issue_url":"https://api.github.com/repos/dotnet/orleans/issues/5038","id":425367985,"node_id":"MDEyOklzc3VlQ29tbWVudDQyNTM2Nzk4NQ==","user":{"login":"ReubenBond","id":203839,"node_id":"MDQ6VXNlcjIwMzgzOQ==","avatar_url":"https://avatars1.githubusercontent.com/u/203839?v=4","gravatar_id":"","url":"https://api.github.com/users/ReubenBond","html_url":"https://github.com/ReubenBond","followers_url":"https://api.github.com/users/ReubenBond/followers","following_url":"https://api.github.com/users/ReubenBond/following{/other_user}","gists_url":"https://api.github.com/users/ReubenBond/gists{/gist_id}","starred_url":"https://api.github.com/users/ReubenBond/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ReubenBond/subscriptions","organizations_url":"https://api.github.com/users/ReubenBond/orgs","repos_url":"https://api.github.com/users/ReubenBond/repos","events_url":"https://api.github.com/users/ReubenBond/events{/privacy}","received_events_url":"https://api.github.com/users/ReubenBond/received_events","type":"User","site_admin":false},"created_at":"2018-09-28T08:49:22Z","updated_at":"2018-09-28T08:49:22Z","author_association":"CONTRIBUTOR","body":"Are all packages updated to use the new code generator? If not, update them, and update all packages to 2.1.0-rc2. "}}
{"actor":{"display_login":"ReubenBond"}}