Closed jairbubbles closed 1 year ago
Thanks for raising this @jairbubbles
Just to confirm, any chance you can still replicate this with version 5.1.0?
I'll check!
Sadly yes, I can reproduce with version 5.1.0.
The package dependencies did not change so we get the exact same behavior.
Any chance you can share a sample repro project to help us understand this better? We are having trouble replicating this as the build works from our end.
You mean in a zip file? The files in the description are enough to get it. I just hit F5 to get the exception.
You mean in a zip file? The files in the description are enough to get it. I just hit F5 to get the exception.
That would be helpful. As from my end, the build runs successfully.
Thanks for this @jairbubbles,
Unfortunately, I'm still unable to replicate this. This builds fine on my end with VS 2022 and dotnet SDK 7.0.201.
Any chance this could be resolved by deleting the contents of the bin
directory? Or possibly updating the .NET version?
It builds fine, the execution is problematic right ?
That's not the case, the code is able to execute without issue from my end.
I'll check with my colleagues if they can reproduce and get back to you, thx !
Ok so I finally understand what's going on, after removing Tavis.UriTemplates
from my global package cache and use nuget.org as my main NuGet source I no longer have the issue.
It seems that we have a different version cached in our internal NuGet package 😰
Version on nuget.org:
Version on our internal Nuget server:
Could it be that the package was republished? I'll check if it wasn't republished internally as I've already seen that once. It shouldn't happen but you know, mistake happen 😉
Sorry for wasting your time!
No worries @jairbubbles,
Thanks for confirming
Describe the bug
When using latest NuGet package, it fails to load
Tavis.UriTemplates.dll
:It seems related to #1439.
It looks like the reference is:
But the assembly name in package is:
To Reproduce Steps to reproduce the behavior:
With program.cs:
var authProvider = new BaseBearerTokenAuthenticationProvider(new TokenProvider()); await authProvider.AuthenticateRequestAsync(new RequestInformation());
class TokenProvider : IAccessTokenProvider { public Task GetAuthorizationTokenAsync(Uri uri, Dictionary<string, object> additionalAuthenticationContext = null, CancellationToken cancellationToken = new())
=> Task.FromResult(string.Empty);
}