msbuildtasks icon indicating copy to clipboard operation
msbuildtasks copied to clipboard

Copy Linked files

Open AlthalusDGr8 opened this issue 9 years ago • 0 comments

Would it be possible to create an MS build task to copy linked files ? Currently i am doing so by using the following snippet in csproj:

<Delete Condition=" '%(Content.Link)' != '' AND Exists('$(WebProjectOutputDir)%(Content.Link)') " Files="$(WebProjectOutputDir)%(Content.Link)" /> <Copy Condition=" '%(Content.Link)' != '' " SourceFiles="%(Content.Identity)" DestinationFiles="$(WebProjectOutputDir)%(Content.Link)" /> </Target> $(PrepareForRunDependsOn); _CopyWebApplication; CopyLinkedContentFiles; _BuiltWebOutputGroupOutput

AlthalusDGr8 avatar Jan 05 '16 15:01 AlthalusDGr8