Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Lee 1130 posts 3088 karma points
    Jun 21, 2013 @ 07:40
    Lee
    0

    XCopy App_Plugin Folder Inc All Files & Sub Folders Except C# Class Files

    I'm sure the are some XCopy post build wizards out there. I am creating a new MVC package and to make it easy for development. I just want to XCopy the App_Plugin Folder Inc All Files & Sub Folders and files within the sub folders.

    But excluding an .cs file. As this has its own xcopy line to the bin folder.

  • Jamie Howarth 306 posts 773 karma points c-trib
    Jun 21, 2013 @ 07:54
    Jamie Howarth
    0

    I created a gist to demonstrate how to create a custom ItemGroup (you can put this inside your "AfterBuild" Target).

    Each element in an ItemGroup consists of two parameters - Include (which is an IParameter[]) and Exclude. Include items are referenced first, then any items in Exclude are removed from the Include. Finally, you can pass this to an ITask as a parameter.

    Hope this helps,

    B

Please Sign in or register to post replies

Write your reply to:

Draft