azure-devopsnugetnuget-packageartifacts

Azure DevOps Artifacts feed does not contain a package description


I am using an Azure DevOps to publish a nuget package in private Artifacts feed. The pipeline contains these last tasks:

 - task: DotNetCoreCLI@2
    condition: eq(variables['Build.SourceBranchName'], 'main')
    displayName: 'dotnet pack'
    inputs:
      command: pack
      packagesToPack: '/home/vsts/work/1/s/src/xxx/xxxx.csproj'
      arguments: '--configuration $(BuildConfiguration)'
      versioningScheme: byEnvVar
      versionEnvVar: PackageVersion

  - task: DotNetCoreCLI@2
    condition: eq(variables['Build.SourceBranchName'], 'main')
    displayName: 'dotnet push'
    inputs:
      command: 'push'
      packagesToPush: '$(Build.ArtifactStagingDirectory)/*.nupkg'
      nuGetFeedType: 'internal'
      publishVstsFeed: 'xxxxxxxxxxxxxxxxxxxxx'

in Artifacts I would like to specifiy a Package description in the created nuget. However it is always "default". I tried with AssemblyInfo.cs and .nuspec file but none helped.

enter image description here


Solution

  • I've solevd adding the following in the .csproj:

    <Description>my desc</Description>