Skip to content

Commit 69ff4ed

Browse files
committed
Fixed NuGet packaging on Mono
1 parent 9c8b5c1 commit 69ff4ed

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

build/FoundationDB.Client.nuspec

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,6 @@
1717
<tags>foundationdb nosql</tags>
1818
</metadata>
1919
<files>
20-
<file src="FoundationDB.Client.dll" target="lib\net45" />
21-
<file src="FoundationDB.Client.XML" target="lib\net45" />
22-
<file src="FoundationDB.Client.pdb" target="lib\net45" />
20+
<file src="FoundationDB.Client.*" target="lib\net45" />
2321
</files>
2422
</package>

build/FoundationDB.Layers.Common.nuspec

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,6 @@
2020
</dependencies>
2121
</metadata>
2222
<files>
23-
<file src="FoundationDB.Layers.Common.dll" target="lib\net-45" />
24-
<file src="FoundationDB.Layers.Common.XML" target="lib\net-45" />
25-
<file src="FoundationDB.Layers.Common.pdb" target="lib\net-45" />
23+
<file src="FoundationDB.Layers.Common.*" target="lib\net-45" />
2624
</files>
2725
</package>

build/build.fsx

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,6 @@ Target "Test" (fun _ ->
6363
CreateDir testDir
6464
ActivateFinalTarget "CloseTestRunner"
6565
!! (buildDir @@ "**" @@ "*Test*.dll")
66-
//++(buildDir + "**/*Test*.exe")
6766
|> NUnit(
6867
fun p -> { p with DisableShadowCopy = true
6968
OutputFile = "TestResults.xml"
@@ -89,14 +88,19 @@ let replaceVersionInNuspec nuspecFileName version =
8988

9089
Target "BuildNuget" (fun _ ->
9190
trace "Building Nuget Packages"
92-
let projects = [ "FoundationDb.Client"; "FoundationDb.Layers.Common" ]
91+
let projects = [ "FoundationDB.Client"; "FoundationDB.Layers.Common" ]
9392
CreateDir nugetOutDir
9493
projects
9594
|> List.iter (
9695
fun name ->
9796
let nuspec = projectRoot() @@ "build" @@ (sprintf "%s.nuspec" name)
9897
replaceVersionInNuspec nuspec version
9998
let binariesDir = buildDir @@ name
99+
100+
// Copy XML doc to binaries dir, works by default on windows but not on Mono.
101+
let xmlDocFile = projectRoot() @@ name @@ "bin" @@ "Release" @@ (sprintf "%s.XML") name
102+
FileUtils.cp xmlDocFile binariesDir
103+
100104
NuGetPack (
101105
fun p ->
102106
{ p with WorkingDir = binariesDir

0 commit comments

Comments
 (0)