Skip to content

Commit

Permalink
Added nuget packaging
Browse files Browse the repository at this point in the history
  • Loading branch information
kblooie committed Oct 19, 2011
1 parent 53d9794 commit 4b5df83
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 0 deletions.
21 changes: 21 additions & 0 deletions nuget/CommonDomain.nuspec
@@ -0,0 +1,21 @@
<?xml version="1.0"?>
<package xmlns="http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd">
<metadata>
<id>CommonDomain</id>
<version>2.0.0</version>
<title>CommonDomain</title>
<authors>Jonathan Oliver</authors>
<owners>Henrik Feldt</owners>
<licenseUrl>https://github.com/joliver/CommonDomain/blob/master/doc/license.txt</licenseUrl>
<projectUrl>https://github.com/joliver/CommonDomain</projectUrl>
<requireLicenseAcceptance>false</requireLicenseAcceptance>
<description>A domain project for quickly implementing CQRS functionality in domain models. This package is built against commit ebe07bfb60102f532ff9 on github. It's currently not "officially" released by Jonathan, more than in OSS form.</description>
<summary>A domain project for quickly implementing CQRS functionality in domain models.</summary>
<dependencies>
<dependency id="EventStore" version="3.0.11291.42" />
</dependencies>
</metadata>
<files>
<file src="output\bin\**" target="lib\net40"/>
</files>
</package>
18 changes: 18 additions & 0 deletions package.cmd
@@ -0,0 +1,18 @@
@echo off

:: Major.Minor
set /p VERSION=Enter version (e.g. 2.0):
:: YYdayOfYear.BuildNumber
set /p BUILD=Enter a build (e.g. 11234):
set /p MATURITY=Enter maturity (e.g. Alpha, Beta, RC, Release, etc.):

if exist packages ( rmdir /s /q "output\packages" )
mkdir "output\packages"

:: for some reason nuget doesn't like adding files located in directories underneath it. v1.4 bug?
::move "publish-net40" "bin\nuget"
::move "publish-net35" "bin\nuget"

"src/.nuget/nuget.exe" Pack "nuget/CommonDomain.nuspec" -Version "%VERSION%.%BUILD%" -OutputDirectory "output/packages" -BasePath "."

::rmdir /s /q bin\nuget\publish-net40

0 comments on commit 4b5df83

Please sign in to comment.