This repository has been archived by the owner on Feb 20, 2021. It is now read-only.
forked from 0install/0install-win
-
Notifications
You must be signed in to change notification settings - Fork 2
/
cleanup.cmd
55 lines (49 loc) · 1.55 KB
/
cleanup.cmd
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
@echo off
::Removes compilation artifacts and other temporary files.
rem Compiled artifacts
rd /s /q "%~dp0build" > NUL 2>&1
rem Solution-wide
del "%~dp0src\*.userprefs" > NUL 2>&1
attrib -h "%~dp0src\*.suo" > NUL 2>&1
del "%~dp0src\*.suo" > NUL 2>&1
del "%~dp0src\*.user" > NUL 2>&1
del "%~dp0src\*.cache" > NUL 2>&1
rd /s /q "src\obj" > NUL 2>&1
rem Per-project
FOR /d %%D IN ("%~dp0src\Backend\*") DO (
rd /s /q "%%D\obj" > NUL 2>&1
rd /s /q "%%D\test-results" > NUL 2>&1
del "%%D\*.pidb" > NUL 2>&1
del "%%D\*.csproj.user" > NUL 2>&1
)
FOR /d %%D IN ("%~dp0src\Frontend\*") DO (
rd /s /q "%%D\obj" > NUL 2>&1
rd /s /q "%%D\test-results" > NUL 2>&1
del "%%D\*.pidb" > NUL 2>&1
del "%%D\*.csproj.user" > NUL 2>&1
)
FOR /d %%D IN ("%~dp0src\Samples\*") DO (
rd /s /q "%%D\obj" > NUL 2>&1
rd /s /q "%%D\test-results" > NUL 2>&1
del "%%D\*.pidb" > NUL 2>&1
del "%%D\*.csproj.user" > NUL 2>&1
)
FOR /d %%D IN ("%~dp0src\Tools\*") DO (
rd /s /q "%%D\obj" > NUL 2>&1
rd /s /q "%%D\test-results" > NUL 2>&1
del "%%D\*.pidb" > NUL 2>&1
del "%%D\*.csproj.user" > NUL 2>&1
)
FOR /d %%D IN ("%~dp0src\Updater\*") DO (
rd /s /q "%%D\obj" > NUL 2>&1
rd /s /q "%%D\test-results" > NUL 2>&1
del "%%D\*.pidb" > NUL 2>&1
del "%%D\*.csproj.user" > NUL 2>&1
)
rem NuGet packages
FOR /d %%D IN ("%~dp0src\packages\*") DO rd /s /q "%%D"
rem NUnit logs
del "%~dp0*.VisualState.xml" > NUL 2>&1
del "%~dp0TestResult.xml" > NUL 2>&1
rem ReSharper caches
for /D %%X in ("%~dp0src\_ReSharper*") do rd /s /q "%%X"