Make sure the project has been built ERROR. Help?

Hi,

so I'm working on a build definition and I can't get it working. The task is to create Nugets form two .csproj files and then publish them to an Azure Artifacts feed, which I've previously created.
It always throws out a NU5012 error saying "Unable to find .dll files for the .csproj needed to be packed.

I really need help with this, I've been goggling and trying for such a long time now. I don't want to dissapoint my colleagues. I will provide any additional info needed!

I don't know if I got the flair right, I hope I did, please correct me If I haven't.

Thanks a lot guys!

 task: UseDotNet@2 displayName: ".NET Core 3.1.x" inputs: version: '3.1.x' packageType: sdk - task: DotNetCoreCLI@2 inputs: command: 'build' projects: '**/*.csproj' - task: DotNetCoreCLI@2 inputs: command: 'restore' projects: '**/*.csproj' feedsToUse: 'select' vstsFeed: 'f43df0e7-1247-4fa2-a1ad-64c5acfce955/15fd8ccd-1bd2-4cce-9746-1bc566d715e3' includeNuGetOrg: false - task: NuGetCommand@2 inputs: command: 'pack' packagesToPack: 'the file I need to pack.csproj' versioningScheme: 'off' - task: NuGetCommand@2 inputs: command: 'pack' packagesToPack: ' the file I need to pack.csproj' versioningScheme: 'off' - task: NuGetCommand@2 inputs: command: 'push' packagesToPush: '$(Build.ArtifactStagingDirectory)/**/*.nupkg;!$(Build.ArtifactStagingDirectory)/**/*.symbols.nupkg' nuGetFeedType: 'internal' publishVstsFeed: 'the feed Id/Code thing' 
submitted by /u/Scezet
[link] [comments]

Read more here: https://www.reddit.com/r/AZURE/comments/jytv6f/make_sure_the_project_has_been_built_error_help/

Content Attribution

This content was originally published by /u/Scezet at Microsoft Azure, and is syndicated here via their RSS feed. You can read the original post over there.

%d bloggers like this: