NuGet Error NU5013

Failed to build 'project.csproj'

Issue

The project failed to build while running NuGet pack operation with the -Build option.

Solution

Please fix the build error in the project and try again. The reason for failure should be displayed in the console logs.