dotnet pack causes error NU5026

Andreas's Avatar

Andreas

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

assembly_info:

patch: true

file: '*\AssemblyInfo.'

assembly_version: '{version}'

assembly_file_version: '{version}'

assembly_informational_version: '{version}'

dotnet_csproj:

patch: true

file: '***.csproj'

version: '{version}'

package_version: '{version}'

assembly_version: '{version}'

file_version: '{version}'

informational_version: '{version}'

nuget:

disable_publish_on_pr: true

disable_publish_octopus: true

build_script:

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

artifacts:

  • 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

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