You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This can cause a MissingMethodException for users upgrading from an older version of our SDK.
(Explanation of MissingMethodException and default parameters: https://stackoverflow.com/a/9884700/1466768)
Next Steps
I think this will be a straightforward fix, I should be able to add a method overload matching the signature of the original method.
I'm setting up a repro right now so I can verify a fix. The plan is to release a patch for versions 2.12, 2.13, and 2.14
Next Next Steps
This highlights the need to add a PublicApiAnalyzer to our other projects.
We currently only have this analyzer on 2/17 of our projects.
The text was updated successfully, but these errors were encountered:
Note that connectionString can't be an optional parameter because that causes the Ambiguous exception.
The only fix is going to be moving it to the first parameter, which will be a breaking change for anybody who took a dependency on it being the last. :(
Anyone who used named parameters would be immune to this problem.
Fun times.
This was brought to my attention by @brettsam
In AppInsights.AspNetCore 2.12.0 I changed the method signature of
AddApplicationInsightsSettings
by adding the optional parameterconnectionString
.ApplicationInsights-dotnet/NETCORE/src/Shared/Extensions/ApplicationInsightsExtensions.cs
Lines 163 to 168 in 0076e0f
This can cause a MissingMethodException for users upgrading from an older version of our SDK.
(Explanation of MissingMethodException and default parameters: https://stackoverflow.com/a/9884700/1466768)
Next Steps
I think this will be a straightforward fix, I should be able to add a method overload matching the signature of the original method.
I'm setting up a repro right now so I can verify a fix.
The plan is to release a patch for versions 2.12, 2.13, and 2.14
Next Next Steps
This highlights the need to add a PublicApiAnalyzer to our other projects.
We currently only have this analyzer on 2/17 of our projects.
The text was updated successfully, but these errors were encountered: