I have resolved my above issue, but now have a newer one that I'm not sure how to fix. In the above problem, I couldn't use the DateTime property outside of a Target element. I had to change my Property and output definition to the following to get it running.
<Target Name="BundleArtifact" DependsOnTargets="BuildSolution">
<MSBuild.ExtensionPack.Framework.DateAndTime TaskAction="Get" Format="yyyyMMddHHmmss">
<Output TaskParameter="Result" PropertyName="BundleDate"/>
</MSBuild.ExtensionPack.Framework.DateAndTime>
<PropertyGroup>
<ReleaseDir>$(ReleaseBaseDir)\$(BundleDate)</ReleaseDir>
</PropertyGroup>
<!-- remove our release directory and create a new one-->
<RemoveDir Directories="$(ReleaseBaseDir)" />
...Do copy and cleanup here...
<!-- Zip everything up-->
<MSBuild.ExtensionPack.Compression.Zip TaskAction="Create" CompressPath="$(ReleaseDir)" RemoveRoot="$(ReleaseBaseDir)" ZipFileName="$(ReleaseDir).zip"/>
</Target>
Now I receive the following errors when I run my zip task
(BundleArtifact target) -> Build.proj(153,5): error : FileNotFoundException: Could not load file or assembly 'vjslib, Version=2.0.0.0, Culture=neutral , PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified.
I'm assuming it's because I don't have J# installed. I have .net 1.1, 2.0 and 3.5 installed, how do I get this library on to my system?