-
Notifications
You must be signed in to change notification settings - Fork 196
MSBuildTask
x97mdr edited this page Oct 24, 2011
·
3 revisions
To allow Pickles to integrate right into your build process there is an MSBuild task provided. You can use this right in your Visual Studio projects or separate MSBuild .proj files.
After you have downloaded Pickles you will need to place the Pickles.MSBuild.Tasks.dll assembly somewhere on your disk (if you are using continuous integration then make sure it is somewhere in your working folder). You then get access to the Pickles task by including this at the top of your .proj file:
<UsingTask AssemblyFile=".\path\to\Pickles.MSBuild.Tasks.dll" TaskName="Pickles" />
The task is very simple to use. Simply add a target and call the Pickles task from within like so:
<Target Name="document">
<MakeDir Directories="$(OutputDirectory)" />
<Pickles FeatureDirectory="$(FeatureDirectory)" OutputDirectory="$(OutputDirectory)" />
</Target>
See the Pickles.Sample project for an example of suing this task in real life