Permalink
Browse files

Fix NuGet packaging

Credit goes to @davidebbo for the excellent work and support
  • Loading branch information...
1 parent 1d544e8 commit 5a47dc45363e078db0f701384c820c27d6ec2548 @nulltoken nulltoken committed May 12, 2011
View
@@ -0,0 +1,10 @@
+# LibGit2Sharp releases
+
+## v0.1.1
+
+ - [Fix] Fix NuGet packaging
+ - [Add] Update staging mechanism to authorize full paths to be used
+
+## v0.1.0
+
+ - Initial release
View
Binary file not shown.
@@ -41,5 +41,5 @@
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
-[assembly: AssemblyVersion("0.1.0")]
-[assembly: AssemblyFileVersion("0.1.0")]
+[assembly: AssemblyVersion("0.1.1")]
+[assembly: AssemblyFileVersion("0.1.1")]
@@ -2,7 +2,7 @@
<package xmlns="http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd">
<metadata>
<id>LibGit2Sharp</id>
- <version>0.1.0</version>
+ <version>0.1.1</version>
<authors>LibGit2Sharp contributors</authors>
<owners>nulltoken</owners>
<licenseUrl>https://github.com/libgit2/libgit2sharp/raw/master/LICENSE.md</licenseUrl>
@@ -12,11 +12,13 @@
<tags>libgit2 git wrapper bindings API</tags>
</metadata>
<files>
- <file src="build\LibGit2Sharp.dll" target="lib\Net35" />
- <file src="build\LibGit2Sharp.pdb" target="lib\Net35" />
- <file src="build\LibGit2Sharp.xml" target="lib\Net35" />
- <file src="build\git2.dll" target="lib\Net35" />
- <file src=".\README.md" target="lib\Net35" />
- <file src=".\LICENSE.md" target="lib\Net35" />
+ <file src="..\build\LibGit2Sharp.dll" target="lib\Net35" />
+ <file src="..\build\LibGit2Sharp.pdb" target="lib\Net35" />
+ <file src="..\build\LibGit2Sharp.xml" target="lib\Net35" />
+ <file src="..\build\git2.dll" target="NativeBinaries\x86" />
+ <file src="..\README.md" target="App_Readme\LibGit2Sharp.README.md" />
+ <file src="..\LICENSE.md" target="App_Readme\LibGit2Sharp.LICENSE.md" />
+ <file src="..\CHANGELOG.md" target="App_Readme\LibGit2Sharp.CHANGELOG.md" />
+ <file src="Tools\*.*" target="Tools" />
</files>
</package>
@@ -0,0 +1,8 @@
+$solutionDir = [System.IO.Path]::GetDirectoryName($dte.Solution.FullName) + "\"
+$path = $installPath.Replace($solutionDir, "`$(SolutionDir)")
+
+$NativeAssembliesDir = Join-Path $path "NativeBinaries"
+$x86 = $(Join-Path $NativeAssembliesDir "x86\*.*")
+
+$LibGit2SharpPostBuildCmd = "
+xcopy /s /y `"$x86`" `"`$(TargetDir)`""
@@ -0,0 +1,11 @@
+param($installPath, $toolsPath, $package, $project)
+
+. (Join-Path $toolsPath "GetLibGit2SharpPostBuildCmd.ps1")
+
+# Get the current Post Build Event cmd
+$currentPostBuildCmd = $project.Properties.Item("PostBuildEvent").Value
+
+# Append our post build command if it's not already there
+if (!$currentPostBuildCmd.Contains($LibGit2SharpPostBuildCmd)) {
+ $project.Properties.Item("PostBuildEvent").Value += $LibGit2SharpPostBuildCmd
+}
@@ -0,0 +1,9 @@
+param($installPath, $toolsPath, $package, $project)
+
+. (Join-Path $toolsPath "GetLibGit2SharpPostBuildCmd.ps1")
+
+# Get the current Post Build Event cmd
+$currentPostBuildCmd = $project.Properties.Item("PostBuildEvent").Value
+
+# Remove our post build command from it (if it's there)
+$project.Properties.Item("PostBuildEvent").Value = $currentPostBuildCmd.Replace($LibGit2SharpPostBuildCmd, "")

0 comments on commit 5a47dc4

Please sign in to comment.