Permalink
Browse files

Added support for NuGet

  • Loading branch information...
1 parent 291b667 commit 8a9d6427de5a812d91813f5e691030f578eb4379 @hhariri committed Mar 6, 2011
Showing with 25 additions and 26 deletions.
  1. +1 −0 build/.gitignore
  2. BIN build/AutoReST.0.2.nupkg
  3. +0 −14 build/AutoReST.nuspec
  4. +18 −0 build/Package.nuspec
  5. +6 −12 build/build.xml
View
@@ -0,0 +1 @@
+Release
View
Binary file not shown.
View
@@ -1,14 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<package>
- <metadata>
- <id>AutoReST</id>
- <title>AutoReST</title>
- <projectUrl>https://github.com/hhariri/AutoReST/</projectUrl>
- <licenseUrl>https://github.com/hhariri/AutoReST/blob/master/LICENSE.TXT</licenseUrl>
- <version>0.2</version>
- <authors>Hadi Hariri</authors>
- <description>AutoReST for ASP.NET MVC</description>
- <language>en-US</language>
- <requireLicenseAcceptance>false</requireLicenseAcceptance>
- </metadata>
-</package>
View
@@ -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>
View
@@ -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.