Skip to content

Commit d54f395

Browse files
committed
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.
1 parent 6ef2168 commit d54f395

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

nuget.package/LibGit2Sharp.nuspec

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?xml version="1.0"?>
2-
<package xmlns="http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd">
2+
<package xmlns="http://schemas.microsoft.com/packaging/2011/08/nuspec.xsd">
33
<metadata>
44
<id>$id$</id>
55
<version>$version$</version>
@@ -12,10 +12,13 @@
1212
<releaseNotes>https://github.com/libgit2/libgit2sharp/blob/master/CHANGES.md#libgit2sharp-changes</releaseNotes>
1313
<iconUrl>https://github.com/libgit2/libgit2sharp/raw/master/square-logo.png</iconUrl>
1414
<tags>libgit2 git wrapper bindings API dvcs vcs</tags>
15+
<references>
16+
<reference file="LibGit2Sharp.dll" />
17+
</references>
1518
</metadata>
1619
<files>
17-
<file src="..\Lib\NativeBinaries\**\*.dll" target="NativeBinaries" />
18-
<file src="..\Lib\NativeBinaries\**\*.pdb" target="NativeBinaries" />
20+
<file src="..\Lib\NativeBinaries\**\*.dll" target="lib\net35\NativeBinaries" />
21+
<file src="..\Lib\NativeBinaries\**\*.pdb" target="lib\net35\NativeBinaries" />
1922
<file src="..\README.md" target="App_Readme\LibGit2Sharp.README.md" />
2023
<file src="..\LICENSE.md" target="App_Readme\LibGit2Sharp.LICENSE.md" />
2124
<file src="..\CHANGES.md" target="App_Readme\LibGit2Sharp.CHANGES.md" />

nuget.package/Tools/GetLibGit2SharpPostBuildCmd.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
$solutionDir = [System.IO.Path]::GetDirectoryName($dte.Solution.FullName) + "\"
22
$path = $installPath.Replace($solutionDir, "`$(SolutionDir)")
33

4-
$NativeAssembliesDir = Join-Path $path "NativeBinaries"
4+
$NativeAssembliesDir = Join-Path $path "lib\net35\NativeBinaries"
55
$x86 = $(Join-Path $NativeAssembliesDir "x86\*.*")
66
$x64 = $(Join-Path $NativeAssembliesDir "amd64\*.*")
77

0 commit comments

Comments
 (0)