-
Notifications
You must be signed in to change notification settings - Fork 0
/
Clean-SolutionOutputFolders.ps1
53 lines (47 loc) · 1.57 KB
/
Clean-SolutionOutputFolders.ps1
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
$folders = @(
"AZDORestApiExplorer"
, "AZDORestApiExplorer.Accounts"
, "azdorestapiexplorer.artifacts"
, "azdorestapiexplorer.audit"
, "azdorestapiexplorer.build"
, "azdorestapiexplorer.core"
, "azdorestapiexplorer.dashboard"
, "azdorestapiexplorer.distributedtask"
, "azdorestapiexplorer.domain"
, "azdorestapiexplorer.extensionmanagement"
, "azdorestapiexplorer.git"
, "azdorestapiexplorer.graph"
, "azdorestapiexplorer.identities"
, "azdorestapiexplorer.memberentitlementmanagement"
, "azdorestapiexplorer.notification"
, "azdorestapiexplorer.operations"
, "azdorestapiexplorer.permissionsreport"
, "azdorestapiexplorer.pipelines"
, "azdorestapiexplorer.policy"
, "azdorestapiexplorer.presentation"
, "azdorestapiexplorer.profile"
, "azdorestapiexplorer.release"
, "azdorestapiexplorer.search"
, "azdorestapiexplorer.security"
, "azdorestapiexplorer.test"
, "azdorestapiexplorer.tfvc"
, "azdorestapiexplorer.tokenadmin"
, "azdorestapiexplorer.wiki"
, "azdorestapiexplorer.work"
, "azdorestapiexplorer.workitemtracking"
, "azdorestapiexplorer.workitemtrackingprocess"
, "azdorestapiexplorer.workitemtrackingprocesstemplate"
)
foreach ($folder in $folders)
{
"Removing obj\ and bin\ folder contents in $folder"
if (Test-Path -Path $folder\obj)
{
remove-item $folder\obj -Recurse -Force
}
if (Test-Path -Path $folder\bin)
{
remove-item $folder\bin -Recurse -Force
}
}
Read-Host -Prompt "Press Enter to Exit"