diff options
author | nulltoken <emeric.fermas@gmail.com> | 2011-09-27 13:47:39 +0400 |
---|---|---|
committer | Emeric Fermas <emeric.fermas@gmail.com> | 2011-09-29 02:01:54 +0400 |
commit | 189f85aafd91d97bbd5c06ce40ee6de6d867dc6c (patch) | |
tree | 301b54d026af10fce54b406be34c70fe2725ed89 /nuget.package/build.nuget.package.cmd | |
parent | 83735193fffbbd31ab3eb205ed6b814d6a1a76e7 (diff) |
Upgrade NuGet to v1.5
- Make the packaging depend on the build success
- Add the libgit2 .pdb file to the package
Should fix issue #63.
Diffstat (limited to 'nuget.package/build.nuget.package.cmd')
-rw-r--r-- | nuget.package/build.nuget.package.cmd | 22 |
1 files changed, 17 insertions, 5 deletions
diff --git a/nuget.package/build.nuget.package.cmd b/nuget.package/build.nuget.package.cmd index f4a708d3..0a498a31 100644 --- a/nuget.package/build.nuget.package.cmd +++ b/nuget.package/build.nuget.package.cmd @@ -1,13 +1,25 @@ +SETLOCAL SET BASEDIR=%~dp0 SET SRCDIR=%BASEDIR%..\LibGit2Sharp\ REM the nuspec file needs to be next to the csproj, so copy it there during the pack operation -copy "%BASEDIR%LibGit2Sharp.nuspec" "%SRCDIR%" +COPY "%BASEDIR%LibGit2Sharp.nuspec" "%SRCDIR%" -pushd "%BASEDIR%" +PUSHD "%BASEDIR%" -..\Lib\NuGet\NuGet.exe pack -sym "%SRCDIR%LibGit2Sharp.csproj" +DEL *.nupkg -popd +CMD /c "..\build.libgit2sharp.cmd" -del "%SRCDIR%LibGit2Sharp.nuspec" +IF %ERRORLEVEL% NEQ 0 GOTO EXIT + +"..\Lib\NuGet\NuGet.exe" Pack -Symbols "%SRCDIR%LibGit2Sharp.csproj" -Prop Configuration=Release + +:EXIT +DEL "%SRCDIR%LibGit2Sharp.nuspec" + +ENDLOCAL +POPD + +PAUSE +EXIT /B %ERRORLEVEL% |