NU5012 error when using automatic packaging
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?
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
1 Posted by Oyvind Valland on 03 Dec, 2021 01:14 PM
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!