Ich habe das Gleiche getan und alles auf die neuesten Codeversionen gebracht.
Ich habe überhaupt keine Codeänderungen vorgenommen und der gesamte Code wurde vor der Version kompiliert und ausgeführt aktualisieren.
Allerdings bleibe ich bei diesem Fehler hängen und er macht für mich keinen Sinn.
Die beiden Methoden, auf die er sich bezieht, sind identisch.
Code: Select all
The call is ambiguous between the following methods or properties:Code: Select all
'System.Linq.AsyncEnumerable.ToListAsync(System.Collections.Generic.IAsyncEnumerable, System.Threading.CancellationToken)'Code: Select all
andCode: Select all
'System.Linq.AsyncEnumerable.ToListAsync(System.Collections.Generic.IAsyncEnumerable, System.Threading.CancellationToken)'Code: Select all
The call is ambiguous between the following methods or properties:Code: Select all
'System.Linq.AsyncEnumerable.Select(System.Collections.Generic.IAsyncEnumerable, System.Func)'Code: Select all
andCode: Select all
'System.Linq.AsyncEnumerable.Select(System.Collections.Generic.IAsyncEnumerable, System.Func)'Jede Hilfe wäre dankbar.
Bearbeiten:
Hier ist ein Codeausschnitt, der das reproduziert Problem:
Code: Select all
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Couchbase;
namespace Kordata.N1QL
{
public class N1QLConnection
{
public async Task ExecuteQueryAsync(string query)
{
ICluster cluster = new Cluster();
var result = await cluster.QueryAsync(query);
var rows = await result.Rows.ToListAsync();
return rows;
}
}
}
Code: Select all
var rows = await result.Rows.ToListAsync();Code: Select all
Kordata.N1QL.csproj
Code: Select all
Couchbase N1QL utilities
net10.0
Kordata.N1QL
Kordata.N1QL
Code: Select all
Kordata.Common.csproj
Code: Select all
Kordata common functions and classes
net10.0
Kordata.Common
Kordata.Common
Code: Select all
Kordata.Core.csproj
Code: Select all
net10.0
$(NoWarn);CS0618
Kordata.Core
Kordata.Core
Code: Select all
Kordata.Metrics.Client.csproj
Code: Select all
net10.0
Kordata.Metrics.Client
Kordata.Metrics.Client
Library
Swagger
Swagger
Swagger Library
A library generated from a Swagger doc
No Copyright
true
true
true
Kordata.Metrics.Client
1.0.0
Mobile version