Skip to content

Commit

Permalink
Added support for NuGet
Browse files Browse the repository at this point in the history
  • Loading branch information
hhariri committed Mar 6, 2011
1 parent 291b667 commit 8a9d642
Show file tree
Hide file tree
Showing 5 changed files with 25 additions and 26 deletions.
1 change: 1 addition & 0 deletions build/.gitignore
@@ -0,0 +1 @@
Release
Binary file removed build/AutoReST.0.2.nupkg
Binary file not shown.
14 changes: 0 additions & 14 deletions build/AutoReST.nuspec

This file was deleted.

18 changes: 18 additions & 0 deletions build/Package.nuspec
@@ -0,0 +1,18 @@
<?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>EasyMVC</id>
<version>0.9.0</version>
<authors>Hadi Hariri</authors>
<owners>Hadi Hariri</owners>
<licenseUrl>https://github.com/hhariri/EasyMVC/blob/master/LICENSE.TXT</licenseUrl>
<projectUrl>https://github.com/hhariri/EasyMVC</projectUrl>
<requireLicenseAcceptance>true</requireLicenseAcceptance>
<description>An MVC Library to make ReST and Conneg and other things easy</description>
<tags>REST, MVC, ASP.NET MVC</tags>
</metadata>
<files>
<file src="Release\EasyMVC.dll" target="lib" />
<file src="Release\EasyMVC.pdb" target="lib" />
</files>
</package>
18 changes: 6 additions & 12 deletions build/build.xml
@@ -1,21 +1,15 @@
<?xml version="1.0" encoding="utf-8"?>
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003" DefaultTargets="NuGet">
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003" DefaultTargets="Build">
<PropertyGroup>
<ProjectFolder>..\src\</ProjectFolder>
<NuGetCommand>X:\Tools\Nuget\nuget.exe</NuGetCommand>
</PropertyGroup>
<ItemGroup>
<NuPackages Include="*.nupkg"/>
</ItemGroup>
<Target Name="Build">

<MSBuild Projects="$(ProjectFolder)\AutoReST.sln"/>
<MSBuild Projects="$(ProjectFolder)\EasyMVC.sln"/>
</Target>

<Target Name="NuGet" DependsOnTargets="Build">
<Exec Command="del @(NuPackages) /F /Q"/>
<Exec Command="$(NuGetCommand) pack"/>

<Target Name="Release">
<MSBuild Projects="$(ProjectFolder)\EasyMVC.sln" Properties="Configuration=Release;OutputPath=..\..\build\Release"/>
<Exec Command="NuGet pack ..\build\Package.nuspec -o ..\build\Release\"/>
</Target>

</Project>

0 comments on commit 8a9d642

Please sign in to comment.