Why are there Microsoft packages in my private Nuget Feed in DevOps Artifacts?

Kirsten Greed

Here is my build pipeline

# .NET Desktop
# Build and run tests for .NET Desktop or Windows classic desktop solutions.
# Add steps that publish symbols, save build artifacts, and more:
# https://docs.microsoft.com/azure/devops/pipelines/apps/windows/dot-net

trigger:
- master

pool:
  vmImage: 'VS2017-Win2016'

variables:
  solution: '**/*.sln'
  buildPlatform: 'Any CPU'
  buildConfiguration: 'Release'
  Major: '2'
  Minor: '0'
  Patch: '0'

steps:
- task: NuGetToolInstaller@0

- task: NuGetCommand@2
  inputs:
    restoreSolution: '$(solution)'

- task: VSBuild@1
  inputs:
    solution: '$(solution)'
    platform: '$(buildPlatform)'
    configuration: '$(buildConfiguration)'

- task: VSTest@2
  inputs:
    platform: '$(buildPlatform)'
    configuration: '$(buildConfiguration)'

- task: NuGetCommand@2
  inputs:
    command: pack
    packagesToPack: '**/*.csproj'
    versioningScheme: byPrereleaseNumber
    majorVersion: '$(Major)'
    minorVersion: '$(Minor)'
    patchVersion: '$(Patch)'

- task: NuGetCommand@2
  displayName: 'NuGet push'
  inputs:
    command: push
    publishVstsFeed: 'MyCommonFeed'
    allowPackageConflicts: true

I was surprised to see that the feed created contains packages from Nuget.org Why? Microsoft packages

Leo Liu-MSFT

Why are there Microsoft packages in my private Nuget Feed in DevOps Artifacts?

That because your private Nuget Feed set nuget.org as an Upstream source by default if you set Package from public sources enable when you create the this feed:

enter image description here

Then go to Setting->Upstream source, you will find there are three public sources listed:

enter image description here

enter image description here

You could use the source filter to select the source of the package.

When we download any packages from the Upstream sources, it will been cached in the Artifacts, you will see it next time.

Hope this helps.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

NuGet packages do not show after pushing to private NuGet Feed (NuGet.Server, IIS)

Private NuGet Feed - Remembering Password

Release definition to publish nuget packages for multiple artifacts

Download all packages from private nuget feed

TFS on premise can't restore nuget packages from private feed

Access Is Denied error pushing package into my azure devops artifacts nuget feed

Why is my project not getting packed with Azure Devops Nuget Pack Task

Why do I see third party packages in my Azure Artifacts feed?

Azure DevOps - Private NuGet feed doesn't update stable release

Unable to load the service index for source error for a private Azure DevOps NuGet feed

Can I upload existing NuGet packages to an Azure DevOps artifacts feed?

Dotnet build in Azure DevOps with private package suorce cannot restore from private nuget feed

Nuget restore returns 401 unauthorized during Jenkins build for packages in Azure DevOps artifacts feed

Azure DevOps publish Nuget to hosted feed

Install-Package with Azure DevOps Artifacts feed with NuGet upstream source is failing

Azure Artifacts Private npm Feed Authentication Failed

Nuget restore not working with artifact feed in Azure Devops

Upstream packages in Artifacts Feed not uploading packages after first npm install

NuGet package for Azure DevOps Feed and Package managment

Remove foreign nuget packages from private nuget feed

Some packages can't be downloaded from Azure DevOps Artifacts feed with NuGet upstream source

No packages found for TeamCity NuGet feed

Non-proprietary Nuget Packages Showing in Nuget Server/Artifacts Feed

Azure DevOps Artifacts not including all packages?

Publish .snupkg to Azure DevOps artifacts nuget feed

Failure to restore nuget packages from organisation feed

Azure DevOps pipeline unable to deploy Blazor Wasm app to Static Web App due to package from private Nuget feed

Permissions on Azure DevOps Artifacts and private npm repository

How to get the list of all the packages with their versions from Artifacts/Nuget Feed in Azure Devops using C#?

TOP Ranking

  1. 1

    Failed to listen on localhost:8000 (reason: Cannot assign requested address)

  2. 2

    How to import an asset in swift using Bundle.main.path() in a react-native native module

  3. 3

    Loopback Error: connect ECONNREFUSED 127.0.0.1:3306 (MAMP)

  4. 4

    pump.io port in URL

  5. 5

    Spring Boot JPA PostgreSQL Web App - Internal Authentication Error

  6. 6

    BigQuery - concatenate ignoring NULL

  7. 7

    ngClass error (Can't bind ngClass since it isn't a known property of div) in Angular 11.0.3

  8. 8

    Do Idle Snowflake Connections Use Cloud Services Credits?

  9. 9

    maven-jaxb2-plugin cannot generate classes due to two declarations cause a collision in ObjectFactory class

  10. 10

    Compiler error CS0246 (type or namespace not found) on using Ninject in ASP.NET vNext

  11. 11

    Can't pre-populate phone number and message body in SMS link on iPhones when SMS app is not running in the background

  12. 12

    Generate random UUIDv4 with Elm

  13. 13

    Jquery different data trapped from direct mousedown event and simulation via $(this).trigger('mousedown');

  14. 14

    Is it possible to Redo commits removed by GitHub Desktop's Undo on a Mac?

  15. 15

    flutter: dropdown item programmatically unselect problem

  16. 16

    Change dd-mm-yyyy date format of dataframe date column to yyyy-mm-dd

  17. 17

    EXCEL: Find sum of values in one column with criteria from other column

  18. 18

    Pandas - check if dataframe has negative value in any column

  19. 19

    How to use merge windows unallocated space into Ubuntu using GParted?

  20. 20

    Make a B+ Tree concurrent thread safe

  21. 21

    ggplotly no applicable method for 'plotly_build' applied to an object of class "NULL" if statements

HotTag

Archive