Azure DevOps Client Library doesn't work
- Dominant language
- PowerShell
- Stars
- 1.1k
- Forks
- 215
- Avg merge
- 4h 2m
- Merged PRs (30d)
- 1
Description
I am trying to use [AzureDevOps Client NET Libraries](https://docs.microsoft.com/en-us/azure/devops/integrate/concepts/dotnet-client-libraries?view=azure-devops) to get a release, but it doesn't look like it will work with azure functions:
```
public override void Configure(IFunctionsHostBuilder builder)
{
builder.Services.AddTransient(x =>
{
var url = "";
var pat = "";
var credentials = new VssBasicCredential(string.Empty, pat);
return new VssConnection(new Uri(url), credentials); <-- Method Not Found...
});
}
```
Results in:
> Microsoft.VisualStudio.Services.WebApi: Method not found: 'Newtonsoft.Json.JsonSerializerSettings System.Net.Http.Formatting.BaseJsonMediaTypeFormatter.get_SerializerSettings()'.
I am using dotnet core 3.1. I have also tried without using DI and I get the same result. The closest thread I could find was this but the [fix doesn't work](https://developercommunity.visualstudio.com/content/problem/878381/problem-with-microsoftvisualstudioservicesclient-n.html)
I also skimmed through [this article](https://mitchdenny.com/vsts-libraries-from-dotnet-core/), but the solution is geared towards windows. I'm on a mac
It suggests:
```
portable-net451+win8
```
Here is my full csproj file:
```
netcoreapp3.1
v3
My.Project
PreserveNewest
PreserveNewest
Never
```
Here is a repo the reproduces the issue
https://github.com/mswilson4040/vssconnection-repro
I also realize that this may not be the correct place for this issue, but it was the only thing I can find. The NuGet page does not provided a GitHub Repo where this is maintained.
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.