title: Nuget package Version Issue for YAML
body: <p>I am trying to get the Nuget file generated in the drop folder to have a name like this - Project.1.0.1-prerelease-2021-05-10.nupkg. But the output of this YAML in the build pipeline is Project.0.1.0.nupkg. What is not correct here? I have tried too many combinations but it keeps generating this in the drop folder.</p>
  <p><a href="https://i.stack.imgur.com/wzF49.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/wzF49.png" alt="enter image description here" /></a></p>
  <p>The csproj file does have a version prefix field like this though</p>
  <p><a href="https://i.stack.imgur.com/E7Abd.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/E7Abd.png" alt="enter image description here" /></a></p>
  <p>YAML</p>
  <pre><code># ASP.NET Core
  # Build and test ASP.NET Core projects targeting .NET Core.
  # Add steps that run tests, create a NuGet package, deploy, and more:
  # https://docs.microsoft.com/azure/devops/pipelines/languages/dotnet-core
  
  name: $(BuildDefinitionName)_$(Year:yyyy).$(Month).$(DayOfMonth)$(Rev:.r)
  
  trigger:
  - main
  
  pool:
    vmImage: windows-latest
  
  variables:
    buildConfiguration: 'Release'
  
  steps:
  
  - task: DotNetCoreCLI@2
    displayName: 'Restore Dependencies'
    inputs:
      command: 'restore'
      projects: '**/*.csproj'
      vstsFeed: '9fc2d633-cc8b-49be-a58d-abb9adf6a2c9'
      
  - task: DotNetCoreCLI@2
    displayName: 'Debug Build'
    inputs:
      command: 'build'
      projects: '**/*.csproj'
      configuration: debug
      
  - task: DotNetCoreCLI@2
    displayName: 'Pack Pre Release'
    inputs:
      command: 'pack'
      packagesToPack: '**/Project.csproj'
      includesymbols: true
      includesource: true
      packDirectory: '$(build.artifactstagingdirectory)/release'
      arguments: '--configuration debug'
      versioningScheme: byPrereleaseNumber
      majorVersion: 1
      minorVersion: 0
      patchVersion: 1
      
  - task: CopyFiles@2
    displayName: 'Copy Artifacts'
    inputs:
      Contents: '**\*.nupkg'
      TargetFolder: '$(build.artifactstagingdirectory)'
  
  - task: PublishBuildArtifacts@1
    displayName: 'Publish artifacts'
    inputs:
      PathtoPublish: '$(build.artifactstagingdirectory)'
  </code></pre>