Entering this information will route you directly to the right team and expedite traction.
Question, Bug, or Feature?
Type: Bug
Enter Task Name: DotNetCoreCLI@2
list here (V# not needed):
https://github.com/Microsoft/azure-pipelines-tasks/tree/master/Tasks
Using DotNetCoreCLI to build .NET Core 3.1 project(s). Building and running them in Visual Studio 2019 works fine, but the pipeline outputs this error:
Build fails when it reaches a class that uses IAsyncEnumerable.
error CS0433: The type 'IAsyncEnumerable
The projects we are building depend on multiple Azure libraries, including Azure.Security.KeyVault.Secrets, Azure.Storage.Blobs, Azure.Storage.Queues, etc., which all depend on Azure.Core, which in turn references Microsoft.Bcl.AsyncInterfaces.
Microsoft.Bcl.AsyncInterfaces implements IAsyncEnumerable, which is now included natively in .Net Core 3.1.
Can't since this is an internal Microsoft project. Just click on the results link above or contact me internally - alias ovidan
Before you ask, I did try working around this with a using alias, but that does not work. I also don't get why it builds fine in Visual Studio and on my machine, but not on Azure Pipelines. They seem to be using the same SDK Version: 3.1.100
Worked with @pakrym to fix this for us. Here is some information that may help others that get into the same situation:
So in conclusion, either use a newer version of nuget in the pipeline, or better yet, use the dotnet restore command.
Most helpful comment
Worked with @pakrym to fix this for us. Here is some information that may help others that get into the same situation:
So in conclusion, either use a newer version of nuget in the pipeline, or better yet, use the dotnet restore command.