Skip to content

Instantly share code, notes, and snippets.

@TomDudfield
Created April 6, 2017 15:20
Show Gist options
  • Save TomDudfield/4c075946a26ae1788cb80b3a27191cc2 to your computer and use it in GitHub Desktop.
Save TomDudfield/4c075946a26ae1788cb80b3a27191cc2 to your computer and use it in GitHub Desktop.
Unicorn webdeploy include
<Target Name="CustomCollectFiles">
<ItemGroup>
<_CustomFiles Include="..\serialization\**\*" />
<FilesForPackagingFromProject Include="%(_CustomFiles.Identity)">
<DestinationRelativePath>App_Data\serialization\%(RecursiveDir)%(Filename)%(Extension) </DestinationRelativePath>
</FilesForPackagingFromProject>
</ItemGroup>
</Target>
<PropertyGroup>
<CopyAllFilesToSingleFolderForPackageDependsOn>
CustomCollectFiles;
$(CopyAllFilesToSingleFolderForPackageDependsOn);
</CopyAllFilesToSingleFolderForPackageDependsOn>
<CopyAllFilesToSingleFolderForMsdeployDependsOn>
CustomCollectFiles;
$(CopyAllFilesToSingleFolderForPackageDependsOn);
</CopyAllFilesToSingleFolderForMsdeployDependsOn>
</PropertyGroup>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment