Open keltex opened 2 weeks ago
Changing the signature of a method or constructor is a breaking change. Even if it's a new optional parameter, as you can see above, it requires depending libraries to recompile and release a new version.
@Twilio maintainers, if you add new parameters, provide overloads so the original signature still exists for existing libraries.
@keltex Thank you for raising this issue. Our team is currently looking into this issue and will be prioritised in the current sprint
This PR recompiles against your new ctor signature, so it'll work again if merged and released. https://github.com/twilio-labs/twilio-aspnet/pull/141
I'm hitting the same issue. Reverting to v7.5.1 worked for me too.
Issue Summary
This is a dotnetcore application running on dotnet 7. When attempting to instatiate a ITwilioRestClient via dependency injection, I get the following exception:
System.MissingMethodException: 'Method not found: 'Void Twilio.Clients.TwilioRestClient..ctor(System.String, System.String, System.String, System.String, Twilio.Http.HttpClient, System.String)'.'
This is happening on twilio 7.6.0. If I roll back to twilio 7.5.1 the bug does not occur.
Steps to Reproduce
Code Snippet
Here's my code to create the service in startup.cs
Then the exception occurs when my razor page loads:
Exception/Log
Technical details: