From d54f395e076d3f81a720b356d9869d9d93298345 Mon Sep 17 00:00:00 2001 From: nulltoken Date: Fri, 20 Sep 2013 17:33:09 +0200 Subject: [PATCH] Make probing work from within the packages folder Fix #515 This aligns the package content to the deployment layout and thus allows usage of the LibGit2Sharp assembly directly from within the unpacked NuGet folder. --- nuget.package/LibGit2Sharp.nuspec | 9 ++++++--- nuget.package/Tools/GetLibGit2SharpPostBuildCmd.ps1 | 2 +- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/nuget.package/LibGit2Sharp.nuspec b/nuget.package/LibGit2Sharp.nuspec index 85805227f..3bacd546a 100644 --- a/nuget.package/LibGit2Sharp.nuspec +++ b/nuget.package/LibGit2Sharp.nuspec @@ -1,5 +1,5 @@ - + $id$ $version$ @@ -12,10 +12,13 @@ https://github.com/libgit2/libgit2sharp/blob/master/CHANGES.md#libgit2sharp-changes https://github.com/libgit2/libgit2sharp/raw/master/square-logo.png libgit2 git wrapper bindings API dvcs vcs + + + - - + + diff --git a/nuget.package/Tools/GetLibGit2SharpPostBuildCmd.ps1 b/nuget.package/Tools/GetLibGit2SharpPostBuildCmd.ps1 index 6d4a41fa2..eb32fe37d 100644 --- a/nuget.package/Tools/GetLibGit2SharpPostBuildCmd.ps1 +++ b/nuget.package/Tools/GetLibGit2SharpPostBuildCmd.ps1 @@ -1,7 +1,7 @@ $solutionDir = [System.IO.Path]::GetDirectoryName($dte.Solution.FullName) + "\" $path = $installPath.Replace($solutionDir, "`$(SolutionDir)") -$NativeAssembliesDir = Join-Path $path "NativeBinaries" +$NativeAssembliesDir = Join-Path $path "lib\net35\NativeBinaries" $x86 = $(Join-Path $NativeAssembliesDir "x86\*.*") $x64 = $(Join-Path $NativeAssembliesDir "amd64\*.*")