Welcome to my technology learning website. The goal of this site is to learn and retain as much information as possible. I consider this blog my knowledge base and hope that you both find and share knowledge here as well. Also for those wondering, Rhyous is pronounced ‘rī-əs. As in the words ‘Rye‘ and ‘us‘ compounded into a two syllable word.
Please take a moment to subscribe, or setup an RSS feed so you never miss a post.
I have a Plugins directory in a Visual Studio project. I would like to delete all files from it when I clean.
Here is how I did this:
- Edit the .csproj file.
- Add the following to the very bottom of the .csproj file, just above the terminating </Project> tag.
<Target Name="afterClean"> <ItemGroup> <FilesToDelete Include="Plugins\**\*"/> </ItemGroup> <Delete Files="@(FilesToDelete)" /> </Target>
- Save the .csproj file.
That should do it.