@@ -359,46 +359,49 @@ internal static IEnumerable<Parameter> GetParametersFromXml(string xmlPath)
359359 /// <returns>True if the transform is successful, otherwise false.</returns>
360360 private static bool ExecuteFileSystemConfigTransform ( )
361361 {
362- XmlNode transFormConfigAction =
363- PackageHelper . ParseStringToXmlNode ( "<Action runat=\" install\" "
364- + "undo=\" true\" "
365- + "alias=\" UmbracoFileSystemProviders.Azure.TransformConfig\" "
366- + "file=\" ~/Config/FileSystemProviders.config\" "
367- + "xdtfile=\" ~/app_plugins/UmbracoFileSystemProviders/Azure/install/FileSystemProviders.config\" >"
368- + "</Action>" ) . FirstChild ;
369-
370- PackageActions . TransformConfig transformConfig = new PackageActions . TransformConfig ( ) ;
371- return transformConfig . Execute ( "UmbracoFileSystemProviders.Azure" , transFormConfigAction ) ;
362+ //XmlNode transFormConfigAction =
363+ // PackageHelper.ParseStringToXmlNode("<Action runat=\"install\" "
364+ // + "undo=\"true\" "
365+ // + "alias=\"UmbracoFileSystemProviders.Azure.TransformConfig\" "
366+ // + "file=\"~/Config/FileSystemProviders.config\" "
367+ // + "xdtfile=\"~/app_plugins/UmbracoFileSystemProviders/Azure/install/FileSystemProviders.config\">"
368+ // + "</Action>").FirstChild;
369+
370+ //PackageActions.TransformConfig transformConfig = new PackageActions.TransformConfig();
371+ //return transformConfig.Execute("UmbracoFileSystemProviders.Azure", transFormConfigAction);
372+ return true ;
372373 }
373374
374375 private static bool ExecuteWebConfigTransform ( )
375376 {
376- XmlNode transFormConfigAction =
377- PackageHelper . ParseStringToXmlNode ( "<Action runat=\" install\" "
378- + "undo=\" true\" "
379- + "alias=\" UmbracoFileSystemProviders.Azure.TransformConfig\" "
380- + "file=\" ~/web.config\" "
381- + "xdtfile=\" ~/app_plugins/UmbracoFileSystemProviders/Azure/install/web.config\" >"
382- + "</Action>" ) . FirstChild ;
383-
384- PackageActions . TransformConfig transformConfig = new PackageActions . TransformConfig ( ) ;
385- return transformConfig . Execute ( "UmbracoFileSystemProviders.Azure" , transFormConfigAction ) ;
377+ //XmlNode transFormConfigAction =
378+ // PackageHelper.ParseStringToXmlNode("<Action runat=\"install\" "
379+ // + "undo=\"true\" "
380+ // + "alias=\"UmbracoFileSystemProviders.Azure.TransformConfig\" "
381+ // + "file=\"~/web.config\" "
382+ // + "xdtfile=\"~/app_plugins/UmbracoFileSystemProviders/Azure/install/web.config\">"
383+ // + "</Action>").FirstChild;
384+
385+ //PackageActions.TransformConfig transformConfig = new PackageActions.TransformConfig();
386+ //return transformConfig.Execute("UmbracoFileSystemProviders.Azure", transFormConfigAction);
387+ return true ;
386388 }
387389
388390 private static bool ExecuteMediaWebConfigTransform ( )
389391 {
390392 if ( File . Exists ( HttpContext . Current . Server . MapPath ( "~/Media/web.config" ) ) )
391393 {
392- XmlNode transFormConfigAction =
393- PackageHelper . ParseStringToXmlNode ( "<Action runat=\" install\" "
394- + "undo=\" true\" "
395- + "alias=\" UmbracoFileSystemProviders.Azure.TransformConfig\" "
396- + "file=\" ~/Media/web.config\" "
397- + "xdtfile=\" ~/app_plugins/UmbracoFileSystemProviders/Azure/install/media-web.config\" >"
398- + "</Action>" ) . FirstChild ;
399-
400- PackageActions . TransformConfig transformConfig = new PackageActions . TransformConfig ( ) ;
401- return transformConfig . Execute ( "UmbracoFileSystemProviders.Azure" , transFormConfigAction ) ;
394+ //XmlNode transFormConfigAction =
395+ // PackageHelper.ParseStringToXmlNode("<Action runat=\"install\" "
396+ // + "undo=\"true\" "
397+ // + "alias=\"UmbracoFileSystemProviders.Azure.TransformConfig\" "
398+ // + "file=\"~/Media/web.config\" "
399+ // + "xdtfile=\"~/app_plugins/UmbracoFileSystemProviders/Azure/install/media-web.config\">"
400+ // + "</Action>").FirstChild;
401+
402+ //PackageActions.TransformConfig transformConfig = new PackageActions.TransformConfig();
403+ //return transformConfig.Execute("UmbracoFileSystemProviders.Azure", transFormConfigAction);
404+ return true ;
402405 }
403406
404407 return true ;
@@ -417,30 +420,32 @@ private static bool ExecuteImageProcessorSecurityConfigTransform()
417420 File . Copy ( ImageProcessorSecurityDefaultConfigPath , ImageProcessorSecurityConfigPath ) ;
418421 }
419422
420- XmlNode transFormConfigAction =
421- PackageHelper . ParseStringToXmlNode ( "<Action runat=\" install\" "
422- + "undo=\" false\" "
423- + "alias=\" UmbracoFileSystemProviders.Azure.TransformConfig\" "
424- + "file=\" ~/config/imageprocessor/security.config\" "
425- + "xdtfile=\" ~/app_plugins/UmbracoFileSystemProviders/Azure/install/security.config\" >"
426- + "</Action>" ) . FirstChild ;
423+ // XmlNode transFormConfigAction =
424+ // PackageHelper.ParseStringToXmlNode("<Action runat=\"install\" "
425+ // + "undo=\"false\" "
426+ // + "alias=\"UmbracoFileSystemProviders.Azure.TransformConfig\" "
427+ // + "file=\"~/config/imageprocessor/security.config\" "
428+ // + "xdtfile=\"~/app_plugins/UmbracoFileSystemProviders/Azure/install/security.config\">"
429+ // + "</Action>").FirstChild;
427430
428- PackageActions . TransformConfig transformConfig = new PackageActions . TransformConfig ( ) ;
429- return transformConfig . Execute ( "UmbracoFileSystemProviders.Azure" , transFormConfigAction ) ;
431+ //PackageActions.TransformConfig transformConfig = new PackageActions.TransformConfig();
432+ //return transformConfig.Execute("UmbracoFileSystemProviders.Azure", transFormConfigAction);
433+ return true ;
430434 }
431435
432436 private static bool ExecuteImageProcessorWebConfigTransform ( )
433437 {
434- XmlNode transFormConfigAction =
435- PackageHelper . ParseStringToXmlNode ( "<Action runat=\" install\" "
436- + "undo=\" false\" "
437- + "alias=\" UmbracoFileSystemProviders.Azure.TransformConfig\" "
438- + "file=\" ~/web.config\" "
439- + "xdtfile=\" ~/app_plugins/UmbracoFileSystemProviders/Azure/install/imageprocessor.web.config\" >"
440- + "</Action>" ) . FirstChild ;
441-
442- PackageActions . TransformConfig transformConfig = new PackageActions . TransformConfig ( ) ;
443- return transformConfig . Execute ( "UmbracoFileSystemProviders.Azure" , transFormConfigAction ) ;
438+ //XmlNode transFormConfigAction =
439+ // PackageHelper.ParseStringToXmlNode("<Action runat=\"install\" "
440+ // + "undo=\"false\" "
441+ // + "alias=\"UmbracoFileSystemProviders.Azure.TransformConfig\" "
442+ // + "file=\"~/web.config\" "
443+ // + "xdtfile=\"~/app_plugins/UmbracoFileSystemProviders/Azure/install/imageprocessor.web.config\">"
444+ // + "</Action>").FirstChild;
445+
446+ //PackageActions.TransformConfig transformConfig = new PackageActions.TransformConfig();
447+ //return transformConfig.Execute("UmbracoFileSystemProviders.Azure", transFormConfigAction);
448+ return true ;
444449 }
445450
446451 private static bool TestAzureCredentials ( string connectionString , string containerName )
0 commit comments