{"action":"closed","issue":{"url":"https://api.github.com/repos/SignalR/SignalR/issues/3457","repository_url":"https://api.github.com/repos/SignalR/SignalR","labels_url":"https://api.github.com/repos/SignalR/SignalR/issues/3457/labels{/name}","comments_url":"https://api.github.com/repos/SignalR/SignalR/issues/3457/comments","events_url":"https://api.github.com/repos/SignalR/SignalR/issues/3457/events","html_url":"https://github.com/SignalR/SignalR/issues/3457","id":68735890,"node_id":"MDU6SXNzdWU2ODczNTg5MA==","number":3457,"title":"Ability to specify an assembly for \"signalr.exe ghp\"","user":{"login":"alex-simonov","id":6773871,"node_id":"MDQ6VXNlcjY3NzM4NzE=","avatar_url":"https://avatars0.githubusercontent.com/u/6773871?v=4","gravatar_id":"","url":"https://api.github.com/users/alex-simonov","html_url":"https://github.com/alex-simonov","followers_url":"https://api.github.com/users/alex-simonov/followers","following_url":"https://api.github.com/users/alex-simonov/following{/other_user}","gists_url":"https://api.github.com/users/alex-simonov/gists{/gist_id}","starred_url":"https://api.github.com/users/alex-simonov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alex-simonov/subscriptions","organizations_url":"https://api.github.com/users/alex-simonov/orgs","repos_url":"https://api.github.com/users/alex-simonov/repos","events_url":"https://api.github.com/users/alex-simonov/events{/privacy}","received_events_url":"https://api.github.com/users/alex-simonov/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2015-04-15T17:00:46Z","updated_at":"2018-09-20T22:06:13Z","closed_at":"2018-09-20T22:06:13Z","author_association":"CONTRIBUTOR","body":"In my solution I have two web projects and each contains a hub with name \"PortfolioHub\". \nI have added `AfterBuild` target in one of my web projects to generate hub proxies:\n\n```\n<Target Name=\"AfterBuild\">\n  <Exec Command=\"$(SolutionDir)packages\\Microsoft.AspNet.SignalR.Utils.2.2.0\\tools\\signalr.exe ghp /o:$(MSBuildThisFileDirectory)Scripts\\signalR.hubs.js\" WorkingDirectory=\"$(OutDir)\" />\n</Target>\n```\n\nEverything is fine when I build solution in Visual Studio and `signalR.hubs.js` is successfully generated.\nBut I see an error when I run the same build in TFS:\n\n```\nEXEC: System.InvalidOperationException: Two Hubs must not share the same name. 'WebApplication1.Hubs.PortfolioHub, WebApplication1, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' and 'WebApplication2.Hubs.PortfolioHub, WebApplication2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' both share the name 'PortfolioHub'.\n```\n\nThis is because TFS by default use the same `$(OutDir)` directory for each project in solution and assemblies `WebApplication1` and `WebApplication2` are placed together in it.\n\nIt would be great to have an ability to specify an assembly which I want to load for generating hub proxies. For example:\n\n```\nsignalr.exe ghp /assembly:WebApplication1.dll\n```\n\nThank you!\n"}}
{"actor":{"display_login":"aspnet-hello"}}