Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Added nuget packaging to build script.

  • Loading branch information...
commit 46525480e359952279a115e701056820220fb6e0 1 parent 38da55e
@CoreyKaylor CoreyKaylor authored
View
2  Rhino.PersistentHashTable/Rhino.PersistentHashTable.csproj
@@ -23,6 +23,7 @@
<DefineConstants>DEBUG;TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
+ <DocumentationFile>bin\Debug\Rhino.PersistentHashTable.xml</DocumentationFile>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<DebugType>pdbonly</DebugType>
@@ -31,6 +32,7 @@
<DefineConstants>TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
+ <DocumentationFile>bin\Release\Rhino.PersistentHashTable.xml</DocumentationFile>
</PropertyGroup>
<ItemGroup>
<Reference Include="Esent.Interop, Version=1.0.0.0, Culture=neutral, processorArchitecture=MSIL">
View
BIN  Tools/7za.exe
Binary file not shown
View
BIN  Tools/NuGet.exe
Binary file not shown
View
BIN  Tools/zip.exe
Binary file not shown
View
31 default.ps1
@@ -3,6 +3,7 @@ properties {
$lib_dir = "$base_dir\SharedLibs"
$build_dir = "$base_dir\build"
$buildartifacts_dir = "$build_dir\"
+ $packageinfo_dir = "$base_dir\packaging"
$sln_file = "$base_dir\Rhino.PersistentHashTable.sln"
$version = "1.7.0.0"
$humanReadableversion = "1.7"
@@ -16,7 +17,7 @@ $framework = "4.0"
include .\psake_ext.ps1
-task default -depends Release
+task default -depends Package
task Clean {
remove-item -force -recurse $buildartifacts_dir -ErrorAction SilentlyContinue
@@ -68,12 +69,14 @@ task Test -depends Compile {
task Release -depends Test {
- & $tools_dir\zip.exe -9 -A -j `
- $release_dir\Rhino.PersistentHashTable-$humanReadableversion-Build-$env:ccnetnumericlabel.zip `
- $build_dir\Rhino.PersistentHashTable.dll `
- $build_dir\Rhino.PersistentHashTable.xml `
- $build_dir\Esent.Interop.dll `
- $build_dir\Esent.Interop.xml `
+ cd $build_dir
+ & $tools_dir\7za.exe a $release_dir\Rhino.PersistentHashTable.zip `
+ *\Esent.Interop.dll `
+ *\Esent.Interop.xml `
+ *\Esent.Interop.pdb `
+ *\Rhino.PersistentHashTable.dll `
+ *\Rhino.PersistentHashTable.xml `
+ *\Rhino.PersistentHashTable.pdb `
license.txt `
acknowledgements.txt
if ($lastExitCode -ne 0) {
@@ -81,16 +84,6 @@ task Release -depends Test {
}
}
-task Upload -depend Release {
- if (Test-Path $uploadScript ) {
- $log = git log -n 1 --oneline
- msbuild $uploadScript /p:Category=$uploadCategory "/p:Comment=$log" "/p:File=$release_dir\Rhino.PersistentHashTable-$humanReadableversion-Build-$env:ccnetnumericlabel.zip"
-
- if ($lastExitCode -ne 0) {
- throw "Error: Failed to publish build"
- }
- }
- else {
- Write-Host "could not find upload script $uploadScript, skipping upload"
- }
+task Package -depends Release {
+ & $tools_dir\NuGet.exe pack $packageinfo_dir\rhino.pht.nuspec -o $release_dir -Version $version -Symbols -BasePath $build_dir
}
View
22 packaging/rhino.pht.nuspec
@@ -0,0 +1,22 @@
+<?xml version="1.0"?>
+<package xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
+ <metadata xmlns="http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd">
+ <id>Rhino.PersistentHashTable</id>
+ <version>0.0.0</version>
+ <authors>Ayende Rahien, Corey Kaylor</authors>
+ <owners>Corey Kaylor</owners>
+ <licenseUrl>https://raw.github.com/hibernating-rhinos/rhino-esb/master/license.txt</licenseUrl>
+ <projectUrl>https://github.com/hibernating-rhinos/rhino-pht</projectUrl>
+ <requireLicenseAcceptance>false</requireLicenseAcceptance>
+ <description>Persistent Hash Table using Esent for .NET</description>
+ <tags>hashtable persistence rhino esent</tags>
+ <dependencies>
+ <dependency id="Rhino.ServiceBus.References"/>
+ </dependencies>
+ </metadata>
+ <files>
+ <file src="Rhino.PersistentHashTable.dll" target="lib" />
+ <file src="Rhino.PersistentHashTable.pdb" target="lib" />
+ <file src="Rhino.PersistentHashTable.xml" target="lib" />
+ </files>
+</package>
Please sign in to comment.
Something went wrong with that request. Please try again.