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.
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.
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.
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
is working on a reply...