Repository: ignite Updated Branches: refs/heads/master 91385256a -> 9326f9a5c
IGNITE-4297 .NET: Update NuGet scripts to clean up jars in bin folder Project: http://git-wip-us.apache.org/repos/asf/ignite/repo Commit: http://git-wip-us.apache.org/repos/asf/ignite/commit/9326f9a5 Tree: http://git-wip-us.apache.org/repos/asf/ignite/tree/9326f9a5 Diff: http://git-wip-us.apache.org/repos/asf/ignite/diff/9326f9a5 Branch: refs/heads/master Commit: 9326f9a5c081f3ba434dade7e9541c46e4ad1cea Parents: 9138525 Author: Pavel Tupitsyn <[email protected]> Authored: Thu Nov 24 16:32:02 2016 +0300 Committer: Pavel Tupitsyn <[email protected]> Committed: Thu Nov 24 16:32:02 2016 +0300 ---------------------------------------------------------------------- .../dotnet/Apache.Ignite.Core/NuGet/Install.ps1 | 14 ++++++++++++++ .../dotnet/Apache.Ignite.Core/NuGet/Uninstall.ps1 | 14 ++++++++++++++ 2 files changed, 28 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/ignite/blob/9326f9a5/modules/platforms/dotnet/Apache.Ignite.Core/NuGet/Install.ps1 ---------------------------------------------------------------------- diff --git a/modules/platforms/dotnet/Apache.Ignite.Core/NuGet/Install.ps1 b/modules/platforms/dotnet/Apache.Ignite.Core/NuGet/Install.ps1 index d4e97bb..e7cdad4 100644 --- a/modules/platforms/dotnet/Apache.Ignite.Core/NuGet/Install.ps1 +++ b/modules/platforms/dotnet/Apache.Ignite.Core/NuGet/Install.ps1 @@ -24,4 +24,18 @@ if (!$currentPostBuildCmd.Contains($IgnitePostBuildCmd)) { $project.Properties.Item("PostBuildEvent").Value += $IgnitePostBuildCmd } +# Save +$project.Save() + +# Remove bin\Libs folders with old jars +$project.ConfigurationManager | % { + $projPath = $project.Properties.Item("FullPath").Value + $binDir = ($_.Properties | Where Name -match OutputPath).Value + + $binPath = Join-Path $projPath $binDir + $libsPath = Join-Path $binPath "Libs" + + Remove-Item -Force -Recurse -ErrorAction SilentlyContinue $libsPath +} + Write-Host "Welcome to Apache Ignite.NET!" \ No newline at end of file http://git-wip-us.apache.org/repos/asf/ignite/blob/9326f9a5/modules/platforms/dotnet/Apache.Ignite.Core/NuGet/Uninstall.ps1 ---------------------------------------------------------------------- diff --git a/modules/platforms/dotnet/Apache.Ignite.Core/NuGet/Uninstall.ps1 b/modules/platforms/dotnet/Apache.Ignite.Core/NuGet/Uninstall.ps1 index f81f41c..634c78e 100644 --- a/modules/platforms/dotnet/Apache.Ignite.Core/NuGet/Uninstall.ps1 +++ b/modules/platforms/dotnet/Apache.Ignite.Core/NuGet/Uninstall.ps1 @@ -19,3 +19,17 @@ $currentPostBuildCmd = $project.Properties.Item("PostBuildEvent").Value # Remove our post build command from it (if it's there) $project.Properties.Item("PostBuildEvent").Value = $currentPostBuildCmd.Replace($IgnitePostBuildCmd, "") + +# Save +$project.Save() + +# Remove bin\Libs folders with jars +$project.ConfigurationManager | % { + $projPath = $project.Properties.Item("FullPath").Value + $binDir = ($_.Properties | Where Name -match OutputPath).Value + + $binPath = Join-Path $projPath $binDir + $libsPath = Join-Path $binPath "Libs" + + Remove-Item -Force -Recurse -ErrorAction SilentlyContinue $libsPath +} \ No newline at end of file
