0
votes

I am new to dev ops pipelines and building nuget packages, however I have a C# repo in Azure Dev Ops,which has a pipeline which restores, builds, packs and then pushed the nuget package to the artifacts feed, now everything works with one exception.

Sometimes it uploads the dependencies, sometimes, it uploads just the dependencies liked in the .csproj file and sometimes it does all the dependencies including all the system and microsoft ones.

My pipeline code doesn't change.

Is this expected behaviour? And can i prevent it?

I just makes my artifact feed a mess, instead of having one of two packages related to my project,it ends up with 100's, i would prefer all the dependencies in the nuget package.

any thoughts would be appriciated.