Skip to content

Instantly share code, notes, and snippets.

@clausjoergensen
Created January 6, 2012 12:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save clausjoergensen/1570447 to your computer and use it in GitHub Desktop.
Save clausjoergensen/1570447 to your computer and use it in GitHub Desktop.
<ItemGroup>
<!-- Specify the folder, or files we want to include -->
<AdditionalPublishFiles Include="ListAndLabel\*.*">
<Visible>False</Visible>
</AdditionalPublishFiles>
<!-- Alternative syntax, for individual files -->
<!--
<AdditionalPublishFiles Include="ListAndLabel\cmbr15.dll;ListAndLabel\Cmct15.dll">
<Visible>False</Visible>
</AdditionalPublishFiles>
-->
</ItemGroup>
<Target Name="BeforeBuild">
<!-- Copies the files to the output folder -->
<Copy DestinationFolder="$(OutputPath)"
SourceFiles="@(AdditionalPublishFiles)"
SkipUnchangedFiles="false" />
<!-- Creates a PublishItem for each file in the AdditionalPublishFiles Include -->
<CreateItem Include="@(AdditionalPublishFiles)"
AdditionalMetadata="TargetPath=%(FileName)%(Extension);IsDataFile=false">
<!-- Sets the parameter to 'Include' for each item in the _DeploymentManifestFiles -->
<Output TaskParameter="Include"
ItemName="_DeploymentManifestFiles" />
</CreateItem>
</Target>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment