dotnet pack causes error NU5026

Andreas's Avatar


13 Jan, 2019 03:30 PM

I've got the following yaml which causes a nuget error, which works perfectly fine when i run it on my own machine.

version: 0.1.{build}-alpha

image: Visual Studio 2017

configuration: Release

platform: Any CPU


patch: true

file: '*\AssemblyInfo.'

assembly_version: '{version}'

assembly_file_version: '{version}'

assembly_informational_version: '{version}'


patch: true

file: '***.csproj'

version: '{version}'

package_version: '{version}'

assembly_version: '{version}'

file_version: '{version}'

informational_version: '{version}'


disable_publish_on_pr: true

disable_publish_octopus: true


  • cmd: dotnet pack -c Release --include-symbols --include-source .\src\Amusoft.UI.WPF\Amusoft.UI.WPF.csproj /p:Version=%APPVEYOR_BUILD_VERSION%


  • path: '***.nupkg'

name: Release

NU5026: The file 'C:\projects\amusoft-ui-wpf\src\Amusoft.UI.WPF\bin\Release\net461\Amusoft.UI.WPF.dll' to be packed was not found on disk.

  1. 1 Posted by Andreas on 13 Jan, 2019 05:23 PM

    Andreas's Avatar

    The issue was that that results in a build version like 512 instead of 0.1.512-alpha which i assumed. dotnet did not point this out until i changed verbosity to -n

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


? 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

Recent Discussions

21 Aug, 2019 11:06 PM
21 Aug, 2019 02:08 PM
21 Aug, 2019 01:37 PM
21 Aug, 2019 10:21 AM
21 Aug, 2019 09:10 AM


21 Aug, 2019 05:56 AM
21 Aug, 2019 03:08 AM
20 Aug, 2019 11:33 PM
20 Aug, 2019 08:07 PM
20 Aug, 2019 05:50 PM
20 Aug, 2019 12:35 PM