|
2 | 2 | #r @"../Tools/FAKE.Dotnet/tools/Fake.Dotnet.dll" |
3 | 3 |
|
4 | 4 | open System |
| 5 | +open System.IO |
5 | 6 | open Fake |
6 | 7 | open Fake.AssemblyInfoFile |
7 | 8 | open Fake.Dotnet |
@@ -40,7 +41,7 @@ let toolsDir = baseDir @@ "tools" |
40 | 41 | let artifactsDir = baseDir @@ "artifacts" |
41 | 42 | let binDir = artifactsDir @@ "bin" |
42 | 43 | let binDirNet45 = binDir @@ "net45" |
43 | | -let binDirNetStandard16 = binDir @@ "netstandard16" |
| 44 | +let binDirNetStandard16 = binDir @@ "netstandard1.6" |
44 | 45 | let testResultsDir = artifactsDir @@ "test_results" |
45 | 46 | let tempDir = artifactsDir @@ "tmp" |
46 | 47 |
|
@@ -154,6 +155,14 @@ Target "BuildNetStandard16" (fun _ -> |
154 | 155 | Configuration = BuildConfiguration.Release |
155 | 156 | }) |
156 | 157 | project |
| 158 | + |
| 159 | + ensureDirectory binDirNetStandard16 |
| 160 | + for projectName in [ "MongoDB.Bson"; "MongoDB.Driver.Core"; "MongoDB.Driver"; "MongoDB.Driver.Legacy"; "MongoDB.Driver.GridFS"] do |
| 161 | + let projectDirectory = baseDir @@ "src" @@ (projectName + ".Dotnet") |
| 162 | + let outputDirectory = projectDirectory @@ "bin" @@ "Release" @@ "netstandard1.6" |
| 163 | + for extension in [".dll"; ".pdb"; ".xml"] do |
| 164 | + CopyFile binDirNetStandard16 (outputDirectory @@ (projectName + extension)) |
| 165 | + |
157 | 166 | ) |
158 | 167 |
|
159 | 168 | Target "TestNet45" (fun _ -> |
@@ -278,16 +287,21 @@ Target "Zip" (fun _ -> |
278 | 287 | ] |
279 | 288 |
|
280 | 289 | let netStandard16Files = [ |
281 | | - srcDir @@ "MongoDB.Bson.Dotnet" @@ "bin" @@ "Release" @@ "netstandard1.6" @@ "MongoDB.Bson.dll" |
282 | | - srcDir @@ "MongoDB.Bson.Dotnet" @@ "bin" @@ "Release" @@ "netstandard1.6" @@ "MongoDB.Bson.pdb" |
283 | | - srcDir @@ "MongoDB.Driver.Core.Dotnet" @@ "bin" @@ "Release" @@ "netstandard1.6" @@ "MongoDB.Driver.Core.dll" |
284 | | - srcDir @@ "MongoDB.Driver.Core.Dotnet" @@ "bin" @@ "Release" @@ "netstandard1.6" @@ "MongoDB.Driver.Core.pdb" |
285 | | - srcDir @@ "MongoDB.Driver.Dotnet" @@ "bin" @@ "Release" @@ "netstandard1.6" @@ "MongoDB.Driver.dll" |
286 | | - srcDir @@ "MongoDB.Driver.Dotnet" @@ "bin" @@ "Release" @@ "netstandard1.6" @@ "MongoDB.Driver.pdb" |
287 | | - srcDir @@ "MongoDB.Driver.Legacy.Dotnet" @@ "bin" @@ "Release" @@ "netstandard1.6" @@ "MongoDB.Driver.Legacy.dll" |
288 | | - srcDir @@ "MongoDB.Driver.Legacy.Dotnet" @@ "bin" @@ "Release" @@ "netstandard1.6" @@ "MongoDB.Driver.Legacy.pdb" |
289 | | - srcDir @@ "MongoDB.Driver.GridFS.Dotnet" @@ "bin" @@ "Release" @@ "netstandard1.6" @@ "MongoDB.Driver.GridFS.dll" |
290 | | - srcDir @@ "MongoDB.Driver.GridFS.Dotnet" @@ "bin" @@ "Release" @@ "netstandard1.6" @@ "MongoDB.Driver.GridFS.pdb" |
| 290 | + binDirNetStandard16 @@ "MongoDB.Bson.dll" |
| 291 | + binDirNetStandard16 @@ "MongoDB.Bson.pdb" |
| 292 | + binDirNetStandard16 @@ "MongoDB.Bson.xml" |
| 293 | + binDirNetStandard16 @@ "MongoDB.Driver.Core.dll" |
| 294 | + binDirNetStandard16 @@ "MongoDB.Driver.Core.pdb" |
| 295 | + binDirNetStandard16 @@ "MongoDB.Driver.Core.xml" |
| 296 | + binDirNetStandard16 @@ "MongoDB.Driver.dll" |
| 297 | + binDirNetStandard16 @@ "MongoDB.Driver.pdb" |
| 298 | + binDirNetStandard16 @@ "MongoDB.Driver.xml" |
| 299 | + binDirNetStandard16 @@ "MongoDB.Driver.GridFS.dll" |
| 300 | + binDirNetStandard16 @@ "MongoDB.Driver.GridFS.pdb" |
| 301 | + binDirNetStandard16 @@ "MongoDB.Driver.GridFS.xml" |
| 302 | + binDirNetStandard16 @@ "MongoDB.Driver.Legacy.dll" |
| 303 | + binDirNetStandard16 @@ "MongoDB.Driver.Legacy.pdb" |
| 304 | + binDirNetStandard16 @@ "MongoDB.Driver.Legacy.xml" |
291 | 305 | ] |
292 | 306 |
|
293 | 307 | CopyFiles zipStagingDirectory sharedFiles |
|
0 commit comments