Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Added NuGet package creation to the build process

  • Loading branch information...
commit 360a80287982176db73dd1fb8b66561d0b83d3dd 1 parent 5a8d4e7
@kristofferahl authored
View
18 Build/FluentSecurity.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>FluentSecurity</id>
+ <version>0.5.1</version>
+ <authors>Kristoffer Ahl</authors>
+ <owners>Kristoffer Ahl</owners>
+ <projectUrl>http://code.google.com/p/fluent-security/</projectUrl>
+ <licenseUrl>http://www.opensource.org/licenses/mit-license.php</licenseUrl>
+ <requireLicenseAcceptance>false</requireLicenseAcceptance>
+ <description>Fluent security configuration for ASP.NET MVC</description>
+ <tags>asp.net mvc .net40 security</tags>
+ </metadata>
+ <files>
+ <file src="Artifacts\FluentSecurity\FluentSecurity.dll" target="lib" />
+ <file src="Artifacts\FluentSecurity\**\*.txt" />
+ </files>
+</package>
View
18 Build/Scripts/Build.build
@@ -13,6 +13,7 @@
<target name="Minimal" description="Compiles" depends="Clean, AssemblyInfo, Compile" />
<target name="Default" description="Compiles and runs tests" depends="Clean, AssemblyInfo, Compile, Run-Unit-Tests" />
<target name="Full" description="Compiles, runs tests and publishes" depends="Clean, AssemblyInfo, Compile, Run-Unit-Tests, Run-Acceptance-Tests, Package, Publish" />
+ <target name="Pack" description="Package" depends="Package" />
<!-- ROOT DIRECTORY
Must be relative to this file
@@ -86,7 +87,7 @@
<fileset>
<include name="${dir.output}\**.*" />
<include name="${dir.reports}\**.*" />
- <include name="${dir.artifacts}\**.*" />
+ <include name="${dir.artifacts}\**\*" />
</fileset>
</delete>
@@ -207,14 +208,27 @@
<target name="Package" description="Creates build artifacts">
- <zip zipfile="${dir.artifacts}FluentSecurity-${project.version}.zip" verbose="${verbose}">
+ <copy todir="${dir.artifacts}FluentSecurity\" verbose="${verbose}">
<fileset basedir="${dir.output}">
<include name="FluentSecurity.dll" />
<include name="FluentSecurity.TestHelper.dll" />
<include name="..\..\License.txt" />
<include name="..\..\Readme.txt" />
</fileset>
+ </copy>
+
+ <zip zipfile="${dir.artifacts}FluentSecurity-${project.version}.zip" verbose="${verbose}">
+ <fileset basedir="${dir.artifacts}FluentSecurity\">
+ <include name="**\*.*" />
+ </fileset>
</zip>
+
+ <exec program="${dir.tools}NuGet\NuGet.exe" failonerror="true">
+ <arg value="pack" />
+ <arg value="${dir.build}FluentSecurity.nuspec" />
+ <arg value="-o" />
+ <arg value="${dir.artifacts}" />
+ </exec>
</target>
View
2  Pack.bat
@@ -0,0 +1,2 @@
+"Tools\NAnt\NAnt.exe" -buildfile:Build\Scripts\Build.build Pack
+PAUSE
View
BIN  Tools/NuGet/NuGet.exe
Binary file not shown
Please sign in to comment.
Something went wrong with that request. Please try again.