Quantcast
Channel: Active questions tagged nuget-package - Stack Overflow
Viewing all articles
Browse latest Browse all 3067

Azuredevops: Push NuGet Packages publishes unexpected packages

$
0
0

I am using classing (not yaml) configured build pipeline.However this is the configuration in yaml style:

steps:- task: NuGetToolInstaller@0  displayName: 'Use NuGet 5.8'  inputs:    versionSpec: 5.8- task: NuGetCommand@2  displayName: 'NuGet restore'  inputs:    restoreSolution: '$(Parameters.solution)'    vstsFeed: 'someGuid'- task: VSBuild@1  displayName: 'Build solution **\*.sln'  inputs:    solution: '$(Parameters.solution)'    platform: '$(BuildPlatform)'    configuration: '$(BuildConfiguration)'- task: DotNetCoreCLI@2  displayName: 'Create NuGet Packages'  inputs:    command: pack    packagesToPack: '**/Logging.csproj'    packDirectory: SomeCompanyPackages    nobuild: true    includesymbols: true    includesource: true- task: DotNetCoreCLI@2  displayName: 'Push NuGet Packages'  inputs:    command: push    packagesToPush: 'SomeCompanyPackages/*.nupkg'    publishVstsFeed: 'someGuid'- task: VSTest@2  displayName: 'VsTest - testAssemblies'  inputs:    testAssemblyVer2: |     **\*\Test.dll     !**\obj\**    platform: '$(BuildPlatform)'    configuration: '$(BuildConfiguration)'- task: PublishBuildArtifacts@1  displayName: 'Publish Artifact: drop'  inputs:    PathtoPublish: '$(build.artifactstagingdirectory)'  condition: succeededOrFailed()

I would expect to only find a NuGet package for Logging.csproj in my artifacty feed but insteadI also find quite a few other packages:

enter image description here

Why is that?

Moreover: I did not figure out how make use of option --skip-duplicateIf anybody can help...


Viewing all articles
Browse latest Browse all 3067

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>