Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use DevTools and GenerateClient, SourceGenerate create two UseSignalRHubSpecification #31

Closed
magals opened this issue Aug 8, 2023 · 1 comment

Comments

@magals
Copy link

magals commented Aug 8, 2023

i want to use your two projects:
TypedSignalR.Client.DevTools
TypedSignalR.Client

and of course I have two projects, server and shared.
shared includes the following libraries:
TypedSignalR.Client.DevTools" Version="1.1.2"
TypedSignalR.Client" Version="3.4.0"

and the problem is that the generated method "UseSignalRHubSpecification" appeared in two projects at once, and when you try to connect this method to the server, this method causes an error:

Error CS0121 The call is ambiguous between the following methods or properties: 'TypedSignalR.Client.DevTools.EndpointRouteBuilderExtensions.UseSignalRHubSpecification(Microsoft.AspNetCore.Routing.IEndpointRouteBuilder)' and 'TypedSignalR.Client.DevTools.EndpointRouteBuilderExtensions.UseSignalRH ubSpecification(Microsoft.AspNetCore.Routing .IEndpointRouteBuilder)' SignalR.GenerationClientAndDevTools.Server

Is there a way to get around this problem?

Screenshot 2023-08-08 180315

@nenoNaninu
Copy link
Owner

Thanks for the report. I released the version that solves this problem. Please try to upgrade the version of TypedSignalR.Client.DevTools to v1.2.0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants