-
Notifications
You must be signed in to change notification settings - Fork 3
/
clean.build
37 lines (34 loc) · 1.52 KB
/
clean.build
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
<?xml version="1.0"?>
<project xmlns="http://nant.sf.net" name="Common NAnt Targets" default="msbuild.all">
<!--
=================================================================================================================
clean: Deletes intermediate files from specified directory
Input: dir - directory to clean
=================================================================================================================
-->
<target name="clean">
<property name="dir" value="${project::get-base-directory()}" unless="${property::exists('dir')}"/>
<if test="${directory::exists(dir)}">
<echo message=""/>
<echo message="=================================================="/>
<echo message="Deleting intermediate files from ${dir}..."/>
<echo message="=================================================="/>
<echo message=""/>
<delete>
<fileset basedir="${dir}">
<include name="**/bin/**"/>
<include name="**/obj/**"/>
<include name="**/_ReSharper.*/**" />
<include name="**/*.suo" />
<include name="**/*.user" />
<include name="**/*.projdata" />
<include name="**/*.ncb" />
<include name="**/*.pdb" />
<include name="**/*.resharper*" />
<exclude name="**/ProjectTemplates/**"/>
<exclude name="**/VSIntegration/DataDynamics.PageFX.VisualStudio.Addin/*.user"/>
</fileset>
</delete>
</if>
</target>
</project>