Building NET 5 0 project Azure DevOps pipeline

0 votes

I wanted to build a project in .NET 5.0 using Azure DevOps pipeline Build. But an error occurred while building it.

Error image

Do Azure DevOps pipelines have support for building .NET 5.0 code? If yes How can I solve this error?

Apr 20, 2022 in Other DevOps Questions by Kichu
• 19,040 points
656 views

No answer to this question. Be the first to respond.

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
0 votes

Yes, the Azure DevOps pipeline can build net5.0 apps. If you want to build with the ".Net Core" task add the "Use .NET Core" task before it, with the correct version:

- task: UseDotNet@2

  inputs:

    packageType: 'sdk'

    version: '5.0.x'


- task: DotNetCoreCLI@2

  displayName: 'dotnet build'

  inputs:

    command: 'build'

I hope this helps.

answered Apr 22, 2022 by narikkadan
• 63,600 points

edited Mar 5

Related Questions In Other DevOps Questions

0 votes
0 answers
0 votes
1 answer

How to configure and execute Azure Devops classic editor pipeline after commit in Github?

If you're looking for CI/CD triggers, all ...READ MORE

answered Feb 10, 2022 in Other DevOps Questions by Bhavitha
• 1,000 points
1,202 views
0 votes
0 answers
0 votes
0 answers
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP