@@ -1216,15 +1216,15 @@ public WebSiteGetPublishProfileResponse.PublishProfile GetWebDeployPublishProfil
1216
1216
/// <param name="connectionStrings">The connection strings to overwrite the ones in the Web.config file.</param>
1217
1217
/// <param name="skipAppData">Skip app data</param>
1218
1218
/// <param name="doNotDelete">Do not delete files at destination</param>
1219
- public void PublishWebProject ( string websiteName , string slot , string package , string setParametersFile , Hashtable connectionStrings , bool skipAppData , bool doNotDelete )
1219
+ public DeploymentChangeSummary PublishWebProject ( string websiteName , string slot , string package , string setParametersFile , Hashtable connectionStrings , bool skipAppData , bool doNotDelete )
1220
1220
{
1221
1221
if ( File . GetAttributes ( package ) . HasFlag ( FileAttributes . Directory ) )
1222
1222
{
1223
- PublishWebProjectFromPackagePath ( websiteName , slot , package , connectionStrings , skipAppData , doNotDelete ) ;
1223
+ return PublishWebProjectFromPackagePath ( websiteName , slot , package , connectionStrings , skipAppData , doNotDelete ) ;
1224
1224
}
1225
1225
else
1226
1226
{
1227
- PublishWebProjectFromPackageFile ( websiteName , slot , package , setParametersFile , connectionStrings , skipAppData , doNotDelete ) ;
1227
+ return PublishWebProjectFromPackageFile ( websiteName , slot , package , setParametersFile , connectionStrings , skipAppData , doNotDelete ) ;
1228
1228
}
1229
1229
}
1230
1230
@@ -1238,7 +1238,7 @@ public void PublishWebProject(string websiteName, string slot, string package, s
1238
1238
/// <param name="connectionStrings">The connection strings to overwrite the ones in the Web.config file.</param>
1239
1239
/// <param name="skipAppData">Skip app data</param>
1240
1240
/// <param name="doNotDelete">Do not delete files at destination</param>
1241
- private void PublishWebProjectFromPackageFile ( string websiteName , string slot , string package , string setParametersFile , Hashtable connectionStrings , bool skipAppData , bool doNotDelete )
1241
+ private DeploymentChangeSummary PublishWebProjectFromPackageFile ( string websiteName , string slot , string package , string setParametersFile , Hashtable connectionStrings , bool skipAppData , bool doNotDelete )
1242
1242
{
1243
1243
DeploymentBaseOptions remoteBaseOptions = CreateRemoteDeploymentBaseOptions ( websiteName , slot ) ;
1244
1244
DeploymentBaseOptions localBaseOptions = new DeploymentBaseOptions ( ) ;
@@ -1282,7 +1282,7 @@ private void PublishWebProjectFromPackageFile(string websiteName, string slot, s
1282
1282
DoNotDelete = doNotDelete
1283
1283
} ;
1284
1284
1285
- deployment . SyncTo ( remoteProviderOptions , remoteBaseOptions , syncOptions ) ;
1285
+ return deployment . SyncTo ( remoteProviderOptions , remoteBaseOptions , syncOptions ) ;
1286
1286
}
1287
1287
}
1288
1288
@@ -1295,7 +1295,7 @@ private void PublishWebProjectFromPackageFile(string websiteName, string slot, s
1295
1295
/// <param name="connectionStrings">The connection strings to overwrite the ones in the Web.config file.</param>
1296
1296
/// <param name="skipAppData">Skip app data</param>
1297
1297
/// <param name="doNotDelete">Do not delete files at destination</param>
1298
- private void PublishWebProjectFromPackagePath ( string websiteName , string slot , string package , Hashtable connectionStrings , bool skipAppData , bool doNotDelete )
1298
+ private DeploymentChangeSummary PublishWebProjectFromPackagePath ( string websiteName , string slot , string package , Hashtable connectionStrings , bool skipAppData , bool doNotDelete )
1299
1299
{
1300
1300
DeploymentBaseOptions remoteBaseOptions = CreateRemoteDeploymentBaseOptions ( websiteName , slot ) ;
1301
1301
DeploymentBaseOptions localBaseOptions = new DeploymentBaseOptions ( ) ;
@@ -1309,7 +1309,7 @@ private void PublishWebProjectFromPackagePath(string websiteName, string slot, s
1309
1309
{
1310
1310
DoNotDelete = doNotDelete
1311
1311
} ;
1312
- deployment . SyncTo ( DeploymentWellKnownProvider . ContentPath , SetWebsiteNameForWebDeploy ( websiteName , slot ) , remoteBaseOptions , syncOptions ) ;
1312
+ return deployment . SyncTo ( DeploymentWellKnownProvider . ContentPath , SetWebsiteNameForWebDeploy ( websiteName , slot ) , remoteBaseOptions , syncOptions ) ;
1313
1313
}
1314
1314
}
1315
1315
0 commit comments