Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Target to publish to the file system in C# projects using VS2010
<Target Name="PublishToFileSystem" DependsOnTargets="PipelinePreDeployCopyAllFilesToOneFolder">
<Error Condition="'$(PublishDestination)'==''" Text="The PublishDestination property must be set to the intended publishing destination." />
<MakeDir Condition="!Exists($(PublishDestination))" Directories="$(PublishDestination)" />
<PublishFiles Include="$(_PackageTempDir)\**\*.*" />
<Copy SourceFiles="@(PublishFiles)" DestinationFiles="@(PublishFiles->'$(PublishDestination)\%(RecursiveDir)%(Filename)%(Extension)')" SkipUnchangedFiles="True" />
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment