< Back
Get-PathOfFileToTransform
Post
NAME Get-PathOfFileToTransform
SYNOPSIS
Determines the location of a configuration file in a target directory based
on the location of a XDT file in a source directory.
SYNTAX
Get-PathOfFileToTransform [-ConfigurationTransformFilePath] <String> [-WebrootOutputPath] <String>
[<CommonParameters>]
DESCRIPTION
The location of the "configuration target file" is determined based on:
EITHER the location of the transform file relative to the "App_Config" directory,
OR in case of files named "Web.config", "Web.Feature.MyProject.config" etc., defaults to
"<WebrootOutputPath>\\Web.config".
E.g.:
Given the following project folder structure:
"C:\\MySolution\\src\\Foundation\\MyProject\\App_Config\\MyConfig.Debug.config"
"C:\\MySolution\\src\\Foundation\\MyProject\\Web.MyProject.Debug.config"
... and given the webroot "C:\\MyWebsite\\www"
... the XDT file "MyConfig.Debug.config" would match the configuration file:
"C:\\MyWebsite\\www\\App_Config\\MyConfig.config"
... and the XDT file "Web.MyProject.Debug.config" would match the configuration file:
"C:\\MyWebsite\\www\\Web.config"
PARAMETERS
-ConfigurationTransformFilePath <String>
E.g. "C:\\MySolution\\src\\Foundation\\Code\\App_Config\\Sitecore\\Include\\MyConfig.Debug.config".
Required? true
Position? 1
Default value
Accept pipeline input? false
Accept wildcard characters? false
-WebrootOutputPath <String>
E.g. "D:\\websites\\MySolution\\www".
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
System.String
RELATED LINKS
SYNOPSIS
Determines the location of a configuration file in a target directory based
on the location of a XDT file in a source directory.
SYNTAX
Get-PathOfFileToTransform [-ConfigurationTransformFilePath] <String> [-WebrootOutputPath] <String>
[<CommonParameters>]
DESCRIPTION
The location of the "configuration target file" is determined based on:
EITHER the location of the transform file relative to the "App_Config" directory,
OR in case of files named "Web.config", "Web.Feature.MyProject.config" etc., defaults to
"<WebrootOutputPath>\\Web.config".
E.g.:
Given the following project folder structure:
"C:\\MySolution\\src\\Foundation\\MyProject\\App_Config\\MyConfig.Debug.config"
"C:\\MySolution\\src\\Foundation\\MyProject\\Web.MyProject.Debug.config"
... and given the webroot "C:\\MyWebsite\\www"
... the XDT file "MyConfig.Debug.config" would match the configuration file:
"C:\\MyWebsite\\www\\App_Config\\MyConfig.config"
... and the XDT file "Web.MyProject.Debug.config" would match the configuration file:
"C:\\MyWebsite\\www\\Web.config"
PARAMETERS
-ConfigurationTransformFilePath <String>
E.g. "C:\\MySolution\\src\\Foundation\\Code\\App_Config\\Sitecore\\Include\\MyConfig.Debug.config".
Required? true
Position? 1
Default value
Accept pipeline input? false
Accept wildcard characters? false
-WebrootOutputPath <String>
E.g. "D:\\websites\\MySolution\\www".
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
System.String
RELATED LINKS