Is it possible to trigger a config transform from a later step?

We are deploying a custom plugin and some core packages one is a web.

How can we transform the web.config from the first step, using a file copied in from a later step?

Here is the workflow:

We deploy the core web first which has no knowledge of the plugin’s custom transform – that comes later. After we deploy this web, we deploy the plugin which is an assembly, some config files, and maybe this config transform. Next, we copy the assembly and the configs to the web.

Thanks!

Although the file had a .config extension, none of the transforms ever worked.

We ended up copying the item to each of the folders in a later step and editing the file in PowerShell.