Azure DevOps Build pipeline failing at Publish step after upgraded to dot net 8

Yatish Bhavsar 0 Reputation points
2024-03-06T16:42:24.2966667+00:00

Hi Team,

I am trying to upgrade my ASP.Net Core 2.2 project to Dot Net 8.

We have react as a front end and using Node 16.16 version which were working fine on dot net core 2.2 project.

But once I upgraded the Project to DOT Net 8 the Azure Build pipeline started failing at Publish step.

In Old version the build pipeline it was using Microsoft (R) Build Engine version 16.7.3+2f374e28e for .NET Now with dot net 8 it's using MSBuild version 17.9.4+90725d08d for .NET.

Below is the screenshot of my proj file details. Only putting Necessary part

Proj file changes. --

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,394 questions
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,183 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,265 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Michael Taylor 48,486 Reputation points
    2024-03-06T19:54:22.1966667+00:00

    There is no screenshot attached.

    In general Azure DevOps issues are not supported here. You should use their official support channel.

    As for your issue, publishing is just the process of combining all your files into an artifact(s) that is then stored. What is in the artifact is independent of the publishing so whether it was produced by a build, copied from somewhere or whatever doesn't really matter. You should look at the logs for the publishing process to see what exactly went wrong. It could be something as simple as your build process not producing the same output structure as it used to so you need to adjust your pipeline to copy outputs to the correct artifact directory before publishing.

    0 comments No comments