From d9c1d60fa6df6224dce57e0d9ad399859c9a2d56 Mon Sep 17 00:00:00 2001 From: Eickhel Mendoza Date: Thu, 7 Sep 2017 09:57:55 +0100 Subject: [PATCH] Adding skip rules for open files by app_data\search --- AzureWebAppClone/Program.cs | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/AzureWebAppClone/Program.cs b/AzureWebAppClone/Program.cs index c42c9b3..2d7e70f 100644 --- a/AzureWebAppClone/Program.cs +++ b/AzureWebAppClone/Program.cs @@ -151,7 +151,14 @@ public static void SyncDatabases(Profile src, Profile dest , string dbtype) } public static void SyncWebApps(Profile src, Profile dest) { - DeploymentSyncOptions syncOptions = new DeploymentSyncOptions(); + DeploymentSyncOptions syncOptions = new DeploymentSyncOptions() + { + Rules = + { + new DeploymentSkipRule("SkipASearch", "AddChild", "dirPath", "app.data.search", ""), + new DeploymentSkipRule("SkipUSearch", "Update", "dirPath", "app.data.search", "") + } + }; DeploymentBaseOptions sourceBaseOptions = new DeploymentBaseOptions(); sourceBaseOptions.ComputerName = "https://" + src.publishUrl + "/msdeploy.axd";