< Back
Invoke-ConfigurationTransform
Post
NAME Invoke-ConfigurationTransform
SYNOPSIS
Applies a configuration transform to a configuration file, and returns the result.
SYNTAX
Invoke-ConfigurationTransform [-XmlFilePath] <String> [-XdtFilePath] <String> [<CommonParameters>]
DESCRIPTION
PARAMETERS
-XmlFilePath <String>
The path to the configuration file.
Required? true
Position? 1
Default value
Accept pipeline input? false
Accept wildcard characters? false
-XdtFilePath <String>
The path to the configuration transform file.
Required? true
Position? 2
Default value
Accept pipeline input? false
Accept wildcard characters? false
<CommonParameters>
This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer, PipelineVariable, and OutVariable. For more information, see
about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).
INPUTS
OUTPUTS
-------------------------- EXAMPLE 1 --------------------------
PS C:\\>Invoke-ConfigurationTransform -XmlFilePath "C:\\Solution\\src\\Web.config" -XdtFilePath
"C:\\Solution\\src\\Web.Debug.config" | Set-Content "C:\\Website\\Web.config"
Note the call to "Set-Content", to use the resulting output for something meaningful.
RELATED LINKS
SYNOPSIS
Applies a configuration transform to a configuration file, and returns the result.
SYNTAX
Invoke-ConfigurationTransform [-XmlFilePath] <String> [-XdtFilePath] <String> [<CommonParameters>]
DESCRIPTION
PARAMETERS
-XmlFilePath <String>
The path to the configuration file.
Required? true
Position? 1
Default value
Accept pipeline input? false
Accept wildcard characters? false
-XdtFilePath <String>
The path to the configuration transform file.
Required? true
Position? 2
Default value
Accept pipeline input? false
Accept wildcard characters? false
<CommonParameters>
This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer, PipelineVariable, and OutVariable. For more information, see
about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).
INPUTS
OUTPUTS
-------------------------- EXAMPLE 1 --------------------------
PS C:\\>Invoke-ConfigurationTransform -XmlFilePath "C:\\Solution\\src\\Web.config" -XdtFilePath
"C:\\Solution\\src\\Web.Debug.config" | Set-Content "C:\\Website\\Web.config"
Note the call to "Set-Content", to use the resulting output for something meaningful.
RELATED LINKS