NU5012 error when using automatic packaging

Oyvind Valland's Avatar

Oyvind Valland

02 Dec, 2021 03:59 PM

Hello,

Today I made a change to a project which we package up (NuGet) and it now references another project within the same assembly. The build now fails with

Error NU5012: Unable to find 'YourRedactedAssemblyName.dll'. Make sure the project has been built.

The log shows that nuget pack was invoked with -Properties "Configuration=Production;Platform=AnyCPU" -IncludeReferencedProjects

I have not been able to find a solution to this. Google offers up suggestions that "Platform=AnyCPU" will solve this problem but that's already provided as a parameter to the nuget pack command.

Does anyone have any ideas?

  1. 1 Posted by Oyvind Valland on 03 Dec, 2021 01:14 PM

    Oyvind Valland's Avatar

    It transpired that the new project had a different build configuration and was output in the Debug folder... so AppVeyor could not find it. Problem solved!

Reply to this discussion

Internal reply

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

Attaching KB article:

»

Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac