This is an automated email from the ASF dual-hosted git repository.
ptupitsyn pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/ignite.git
The following commit(s) were added to refs/heads/master by this push:
new ab3e758 IGNITE-12604 .NET: Fix file copy logic in build script
ab3e758 is described below
commit ab3e758eea75c328b6af1931e25f304254798cb1
Author: Pavel Tupitsyn <[email protected]>
AuthorDate: Wed Jan 29 22:10:46 2020 +0300
IGNITE-12604 .NET: Fix file copy logic in build script
Fix missing .NET Core publish directory
---
modules/platforms/dotnet/build.ps1 | 10 ++++++----
1 file changed, 6 insertions(+), 4 deletions(-)
diff --git a/modules/platforms/dotnet/build.ps1
b/modules/platforms/dotnet/build.ps1
index 15a91c6..c89d85e 100644
--- a/modules/platforms/dotnet/build.ps1
+++ b/modules/platforms/dotnet/build.ps1
@@ -249,6 +249,7 @@ if ($asmDirs) {
if ($projName.StartsWith("Apache.Ignite")) {
$target = "$projName\bin\Release"
Make-Dir($target)
+ Copy-Item -Force $_ $target
}
}
}
@@ -258,11 +259,12 @@ Make-Dir("bin")
Get-ChildItem *.csproj -Recurse | where Name -NotLike "*Examples*" `
| where Name -NotLike "*Tests*" `
+ | where Name -NotLike "*DotNetCore*" `
| where Name -NotLike "*Benchmarks*" | % {
- $binDir = if (($platform -eq "Any CPU") -or ($_.Name -ne
"Apache.Ignite.Core.csproj") -or $IsLinux) `
- {"bin\$configuration"} else {"bin\$platform\$configuration"}
- $dir = join-path (split-path -parent $_) $binDir
- Copy-Item -Force $dir\*.* bin
+ $projDir = split-path -parent $_.FullName
+ $dir = [IO.Path]::Combine($projDir, "bin", $configuration, "*")
+ echo "Copying files to bin from '$dir'"
+ Copy-Item -Force -Recurse $dir bin
}