Using command dotnet push I was wanting to only publish nuget packages that included *.nupkg but also exclude *.symbols.nupkg pattern.

I figured okay, I would use option to negate a particular path. Using the help guidance

“The pattern to match or path to nupkg files to be uploaded. Multiple patterns can be separated by a semicolon, and you can make a pattern negative by prefixing it with '-:'. Example: /*.nupkg;-:/*.Tests.nupkg”

image

The issue is that this is incorrect.  If you wish to pattern negative prefix with ! (with semi-colon for make delimited) such as

$(Build.ArtifactStagingDirectory)/*.nupkg;!$(Build.ArtifactStagingDirectory)/*.symbols.nupkg

Comments


Comments are closed

About Us

Web/Mobile Solutions

Our Contacts

Cincinnati, OH 45069