File tree Expand file tree Collapse file tree 1 file changed +11
-3
lines changed Expand file tree Collapse file tree 1 file changed +11
-3
lines changed Original file line number Diff line number Diff line change @@ -315,10 +315,18 @@ Task("PushToMyget")
315
315
316
316
var packageFiles = new List < FilePath > ( ) ;
317
317
318
- var nuspecFiles = GetFiles ( "./artifacts/packages/*.nuspec" ) ;
319
- foreach ( var nuspecFile in nuspecFiles )
318
+ var projects = new [ ]
319
+ {
320
+ "MongoDB.Bson" ,
321
+ "MongoDB.Driver.Core" ,
322
+ "MongoDB.Driver" ,
323
+ "MongoDB.Driver.GridFS" ,
324
+ "mongocsharpdriver" // the Nuget package name for MongoDB.Driver.Legacy
325
+ } ;
326
+
327
+ foreach ( var project in projects )
320
328
{
321
- var packageFileName = nuspecFile . GetFilenameWithoutExtension ( ) + " .nupkg";
329
+ var packageFileName = $ " { project } . { gitVersion . SemVer } .nupkg";
322
330
var packageFile = artifactsPackagesDirectory . CombineWithFilePath ( packageFileName ) ;
323
331
packageFiles . Add ( packageFile ) ;
324
332
}
You can’t perform that action at this time.
0 commit comments