Permalink
Browse files

Update Nuspec to used merged assemblies. The nuspec can't be adjacent…

… to the cspoj file otherwise it will pick up the C5 and NCrontab package dependencies, which are not necessary. Side-effect is that a version number must be passed to nuget when packing the nuspec.
  • Loading branch information...
1 parent 8b7f5e1 commit cfba85be1054d47d119336a0d15b103323f8c68b @damianh damianh committed Mar 21, 2012
Showing with 10 additions and 1 deletion.
  1. +5 −1 src/NCron.nuspec
  2. +5 −0 src/NCron/NCron.csproj
View
@@ -1,7 +1,7 @@
<?xml version="1.0"?>
<package xmlns="http://schemas.microsoft.com/packaging/2011/08/nuspec.xsd">
<metadata>
- <id>$id$</id>
+ <id>NCron</id>
<version>$version$</version>
<title>NCron</title>
<authors>Joern Schou-Rode</authors>
@@ -13,5 +13,9 @@
<description>.NET Scheduling Framework</description>
<copyright>Copyright 2008-2011</copyright>
<tags>cron scheduling</tags>
+ <dependencies/>
</metadata>
+ <files>
+ <file src="NCron\bin\Release\*.*" target="lib\net40-Client" />
+ </files>
</package>
View
@@ -100,6 +100,11 @@
<!-- ILMerge does not yet support .NET 4.0 http://nitoprograms.blogspot.com/2010/09/using-ilmerge-with-net-40-andor-rx.html /targetplatform:v4,"%ProgramFiles%\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0" -->
<Exec Command="&quot;$(ILMergeExe)&quot; /targetplatform:&quot;v4, %ProgramFiles(x86)%\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0\Profile\Client&quot; /internalize /target:dll /out:&quot;Merged\$(ILMergeOutputFile)&quot; /log:&quot;ilmerge.msbuild.log&quot; $(ILMergeInputItems)" WorkingDirectory="$(OutputPath)" />
<Copy SourceFiles="$(OutputPath)Merged\$(AssemblyName).dll;$(OutputPath)Merged\$(AssemblyName).pdb" DestinationFolder="$(OutputPath)"/>
+ <ItemGroup>
+ <References Include="$(OutputPath)C5.*;$(OutputPath)NCrontab.*;$(OutputPath)ilmerge.msbuild.log" />
+ </ItemGroup>
+ <Delete Files="@(References)"/>
+ <RemoveDir Directories="$(OutputPath)\Merged" />
</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.

0 comments on commit cfba85b

Please sign in to comment.