@@ -10,7 +10,7 @@ if ($project) {
10
10
New-Item - ItemType Directory - Force - Path $backupPath
11
11
New-Item - ItemType Directory - Force - Path $copyLogsPath
12
12
13
- # After backing up, remove all dlls from bin folder in case dll files are included in the VS project
13
+ # After backing up, remove all umbraco dlls from bin folder in case dll files are included in the VS project
14
14
# See: http://issues.umbraco.org/issue/U4-4930
15
15
$umbracoBinFolder = Join-Path $projectDestinationPath " bin"
16
16
if (Test-Path $umbracoBinFolder ) {
@@ -19,6 +19,58 @@ if ($project) {
19
19
New-Item - ItemType Directory - Force - Path $umbracoBinBackupPath
20
20
21
21
robocopy $umbracoBinFolder $umbracoBinBackupPath / e / LOG:$copyLogsPath \UmbracoBinBackup.log
22
- Remove-Item $umbracoBinFolder \* .dll - Force - Confirm:$false
22
+
23
+ # Delete files Umbraco brings in
24
+ if (Test-Path $umbracoBinFolder \businesslogic.dll) { Remove-Item $umbracoBinFolder \businesslogic.dll - Force - Confirm:$false }
25
+ if (Test-Path $umbracoBinFolder \cms.dll) { Remove-Item $umbracoBinFolder \cms.dll - Force - Confirm:$false }
26
+ if (Test-Path $umbracoBinFolder \controls.dll) { Remove-Item $umbracoBinFolder \controls.dll - Force - Confirm:$false }
27
+ if (Test-Path $umbracoBinFolder \interfaces.dll) { Remove-Item $umbracoBinFolder \interfaces.dll - Force - Confirm:$false }
28
+ if (Test-Path $umbracoBinFolder \log4net.dll) { Remove-Item $umbracoBinFolder \log4net.dll - Force - Confirm:$false }
29
+ if (Test-Path $umbracoBinFolder \Microsoft.ApplicationBlocks.Data.dll) { Remove-Item $umbracoBinFolder \Microsoft.ApplicationBlocks.Data.dll - Force - Confirm:$false }
30
+ if (Test-Path $umbracoBinFolder \Microsoft.Web.Helpers.dll) { Remove-Item $umbracoBinFolder \Microsoft.Web.Helpers.dll - Force - Confirm:$false }
31
+ if (Test-Path $umbracoBinFolder \SQLCE4Umbraco.dll) { Remove-Item $umbracoBinFolder \SQLCE4Umbraco.dll - Force - Confirm:$false }
32
+ if (Test-Path $umbracoBinFolder \System.Data.SqlServerCe.dll) { Remove-Item $umbracoBinFolder \System.Data.SqlServerCe.dll - Force - Confirm:$false }
33
+ if (Test-Path $umbracoBinFolder \System.Data.SqlServerCe.Entity.dll) { Remove-Item $umbracoBinFolder \System.Data.SqlServerCe.Entity.dll - Force - Confirm:$false }
34
+ if (Test-Path $umbracoBinFolder \TidyNet.dll) { Remove-Item $umbracoBinFolder \TidyNet.dll - Force - Confirm:$false }
35
+ if (Test-Path $umbracoBinFolder \umbraco.dll) { Remove-Item $umbracoBinFolder \umbraco.dll - Force - Confirm:$false }
36
+ if (Test-Path $umbracoBinFolder \Umbraco.Core.dll) { Remove-Item $umbracoBinFolder \Umbraco.Core.dll - Force - Confirm:$false }
37
+ if (Test-Path $umbracoBinFolder \umbraco.DataLayer.dll) { Remove-Item $umbracoBinFolder \umbraco.DataLayer.dll - Force - Confirm:$false }
38
+ if (Test-Path $umbracoBinFolder \umbraco.editorControls.dll) { Remove-Item $umbracoBinFolder \umbraco.editorControls.dll - Force - Confirm:$false }
39
+ if (Test-Path $umbracoBinFolder \umbraco.MacroEngines.dll) { Remove-Item $umbracoBinFolder \umbraco.MacroEngines.dll - Force - Confirm:$false }
40
+ if (Test-Path $umbracoBinFolder \umbraco.providers.dll) { Remove-Item $umbracoBinFolder \umbraco.providers.dll - Force - Confirm:$false }
41
+ if (Test-Path $umbracoBinFolder \Umbraco.Web.UI.dll) { Remove-Item $umbracoBinFolder \Umbraco.Web.UI.dll - Force - Confirm:$false }
42
+ if (Test-Path $umbracoBinFolder \UmbracoExamine.dll) { Remove-Item $umbracoBinFolder \UmbracoExamine.dll - Force - Confirm:$false }
43
+ if (Test-Path $umbracoBinFolder \UrlRewritingNet.UrlRewriter.dll) { Remove-Item $umbracoBinFolder \UrlRewritingNet.UrlRewriter.dll - Force - Confirm:$false }
44
+
45
+ # Delete files Umbraco depends upon
46
+ $amd64Folder = Join-Path $projectDestinationPath " bin\amd64"
47
+ if (Test-Path $amd64Folder ) { Remove-Item $amd64Folder - Force - Recurse - Confirm:$false }
48
+ $x86Folder = Join-Path $projectDestinationPath " bin\x86"
49
+ if (Test-Path $x86Folder ) { Remove-Item $x86Folder - Force - Recurse - Confirm:$false }
50
+ if (Test-Path $umbracoBinFolder \AutoMapper.dll) { Remove-Item $umbracoBinFolder \AutoMapper.dll - Force - Confirm:$false }
51
+ if (Test-Path $umbracoBinFolder \AutoMapper.Net4.dll) { Remove-Item $umbracoBinFolder \AutoMapper.Net4.dll - Force - Confirm:$false }
52
+ if (Test-Path $umbracoBinFolder \ClientDependency.Core.dll) { Remove-Item $umbracoBinFolder \ClientDependency.Core.dll - Force - Confirm:$false }
53
+ if (Test-Path $umbracoBinFolder \ClientDependency.Core.Mvc.dll) { Remove-Item $umbracoBinFolder \ClientDependency.Core.Mvc.dll - Force - Confirm:$false }
54
+ if (Test-Path $umbracoBinFolder \CookComputing.XmlRpcV2.dll) { Remove-Item $umbracoBinFolder \CookComputing.XmlRpcV2.dll - Force - Confirm:$false }
55
+ if (Test-Path $umbracoBinFolder \Examine.dll) { Remove-Item $umbracoBinFolder \Examine.dll - Force - Confirm:$false }
56
+ if (Test-Path $umbracoBinFolder \HtmlAgilityPack.dll) { Remove-Item $umbracoBinFolder \HtmlAgilityPack.dll - Force - Confirm:$false }
57
+ if (Test-Path $umbracoBinFolder \ICSharpCode.SharpZipLib.dll) { Remove-Item $umbracoBinFolder \ICSharpCode.SharpZipLib.dll - Force - Confirm:$false }
58
+ if (Test-Path $umbracoBinFolder \ImageProcessor.dll) { Remove-Item $umbracoBinFolder \ImageProcessor.dll - Force - Confirm:$false }
59
+ if (Test-Path $umbracoBinFolder \ImageProcessor.Web.dll) { Remove-Item $umbracoBinFolder \ImageProcessor.Web.dll - Force - Confirm:$false }
60
+ if (Test-Path $umbracoBinFolder \Lucene.Net.dll) { Remove-Item $umbracoBinFolder \Lucene.Net.dll - Force - Confirm:$false }
61
+ if (Test-Path $umbracoBinFolder \Microsoft.Web.Infrastructure.dll) { Remove-Item $umbracoBinFolder \Microsoft.Web.Infrastructure.dll - Force - Confirm:$false }
62
+ if (Test-Path $umbracoBinFolder \Microsoft.Web.Mvc.FixedDisplayModes.dll) { Remove-Item $umbracoBinFolder \Microsoft.Web.Mvc.FixedDisplayModes.dll - Force - Confirm:$false }
63
+ if (Test-Path $umbracoBinFolder \MiniProfiler.dll) { Remove-Item $umbracoBinFolder \MiniProfiler.dll - Force - Confirm:$false }
64
+ if (Test-Path $umbracoBinFolder \MySql.Data.dll) { Remove-Item $umbracoBinFolder \MySql.Data.dll - Force - Confirm:$false }
65
+ if (Test-Path $umbracoBinFolder \Newtonsoft.Json.dll) { Remove-Item $umbracoBinFolder \Newtonsoft.Json.dll - Force - Confirm:$false }
66
+ if (Test-Path $umbracoBinFolder \System.Net.Http.Formatting.dll) { Remove-Item $umbracoBinFolder \System.Net.Http.Formatting.dll - Force - Confirm:$false }
67
+ if (Test-Path $umbracoBinFolder \System.Web.Helpers.dll) { Remove-Item $umbracoBinFolder \System.Web.Helpers.dll - Force - Confirm:$false }
68
+ if (Test-Path $umbracoBinFolder \System.Web.Http.dll) { Remove-Item $umbracoBinFolder \System.Web.Http.dll - Force - Confirm:$false }
69
+ if (Test-Path $umbracoBinFolder \System.Web.Http.WebHost.dll) { Remove-Item $umbracoBinFolder \System.Web.Http.WebHost.dll - Force - Confirm:$false }
70
+ if (Test-Path $umbracoBinFolder \System.Web.Mvc.dll) { Remove-Item $umbracoBinFolder \System.Web.Mvc.dll - Force - Confirm:$false }
71
+ if (Test-Path $umbracoBinFolder \System.Web.Razor.dll) { Remove-Item $umbracoBinFolder \System.Web.Razor.dll - Force - Confirm:$false }
72
+ if (Test-Path $umbracoBinFolder \System.Web.WebPages.dll) { Remove-Item $umbracoBinFolder \System.Web.WebPages.dll - Force - Confirm:$false }
73
+ if (Test-Path $umbracoBinFolder \System.Web.WebPages.Deployment.dll) { Remove-Item $umbracoBinFolder \System.Web.WebPages.Deployment.dll - Force - Confirm:$false }
74
+ if (Test-Path $umbracoBinFolder \System.Web.WebPages.Razor.dll) { Remove-Item $umbracoBinFolder \System.Web.WebPages.Razor.dll - Force - Confirm:$false }
23
75
}
24
76
}
0 commit comments