Skip to content

Commit

Permalink
Adding .nuspec and AfterBuild target to build NuGet package on Releas…
Browse files Browse the repository at this point in the history
…e build
  • Loading branch information
bradymholt committed Aug 19, 2013
1 parent 01bf3c8 commit b0129c3
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 12 deletions.
14 changes: 7 additions & 7 deletions CronExpressionDescriptor/CronExpressionDescriptor.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -70,11 +70,11 @@
<None Include="CronExpressionDescriptor.snk" />
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets.
<Target Name="BeforeBuild">
</Target>
<Target Name="AfterBuild">
</Target>
-->
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets. -->
<Target Name="BeforeBuild">
</Target>
<Target Name="AfterBuild" Condition="'$(Configuration)' == 'Release' ">
<Exec Command="nuget.exe pack $(ProjectFileName) -Prop Configuration=Release -OutputDirectory bin\$(Configuration) -Verbosity normal" />
</Target>
</Project>
20 changes: 20 additions & 0 deletions CronExpressionDescriptor/CronExpressionDescriptor.nuspec
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
<?xml version="1.0"?>
<package xmlns="http://schemas.microsoft.com/packaging/2011/08/nuspec.xsd">
<metadata>
<id>CronExpressionDescriptor</id>
<version>$version$</version>
<title>Cron Expression Descriptor</title>
<authors>$author$</authors>
<owners>>$author$</owners>
<licenseUrl>https://raw.github.com/bradyholt/cron-expression-descriptor/master/LICENSE</licenseUrl>
<projectUrl>http://bradyholt.github.io/cron-expression-descriptor/</projectUrl>
<requireLicenseAcceptance>false</requireLicenseAcceptance>
<description>$description$</description>
<frameworkAssemblies>
<frameworkAssembly assemblyName="System" targetFramework="net40" />
</frameworkAssemblies>
<releaseNotes />
<copyright>Copyright 2013</copyright>
<tags>cron</tags>
</metadata>
</package>
9 changes: 4 additions & 5 deletions CronExpressionDescriptor/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("CronExpressionDescriptor")]
[assembly: AssemblyTitle("Cron Expression Descriptor")]
[assembly: AssemblyDescription("CronExpressionDescriptor")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyCompany("Brady Holt, Renato Lima, Ivan Santos")]
[assembly: AssemblyProduct("CronExpressionDescriptor")]
[assembly: AssemblyCopyright("Copyright © 2012, Brady Holt")]
[assembly: AssemblyCopyright("")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]

Expand All @@ -32,5 +32,4 @@
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.4.*")]
[assembly: AssemblyFileVersion("1.4.*")]
[assembly: AssemblyVersion("1.7")]

0 comments on commit b0129c3

Please sign in to comment.