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
I'm trying to create a VssConnection in an Azure Function, but I am presented with the below error after trying to invoke it:
Microsoft.VisualStudio.Services.WebApi: Method not found: 'Newtonsoft.Json.JsonSerializerSettings System.Net.Http.Formatting.BaseJsonMediaTypeFormatter.get_SerializerSettings()'.
public override void Configure(IFunctionsHostBuilder builder)
{
builder.Services.AddTransient(x =>
{
var url = "<URL>";
var pat = "<PAT TOKEN>";
var credentials = new VssBasicCredential(string.Empty, pat);
return new VssConnection(new Uri(url), credentials);
});
}
I also tried doing it without DI and got the same issue.
Function Runtime: 3.0.2009
Target Framework: dotnet core 3.1
OS: Mac Catalina
The text was updated successfully, but these errors were encountered:
I'm trying to create a
VssConnection
in an Azure Function, but I am presented with the below error after trying to invoke it:I also tried doing it without DI and got the same issue.
Function Runtime: 3.0.2009
Target Framework: dotnet core 3.1
OS: Mac Catalina
The text was updated successfully, but these errors were encountered: