< Back

Invoke-AllConfigurationTransforms

Sat Jan 18, 2020 6:44 pm

NAME Invoke-AllConfigurationTransforms



SYNOPSIS

Applies all configuration transforms found under the specified root path, matching a certain build configuration.

By convention, XDTs ending with ".Always.config" are always applied.





SYNTAX

Invoke-AllConfigurationTransforms [[-SolutionOrProjectRootPath] <String>] [-WebrootOutputPath] <String>

[-BuildConfiguration] <String> [<CommonParameters>]





DESCRIPTION





PARAMETERS

-SolutionOrProjectRootPath <String>

The root path from which to fetch XDT files. If null or empty, $WebrootOutputPath is used.



Required? false

Position? 1

Default value

Accept pipeline input? false

Accept wildcard characters? false



-WebrootOutputPath <String>

The root path in which to search for configuration files.



Required? true

Position? 2

Default value

Accept pipeline input? false

Accept wildcard characters? false



-BuildConfiguration <String>

The build configuration for which to apply transforms.



Required? true

Position? 3

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-AllConfigurationTransforms -SolutionOrProjectRootPath "C:\\MySolution\\src\\MyProject"

-WebrootOutputPath "C:\\Websites\\MySolution\\www" -BuildConfiguration "Debug"















RELATED LINKS