Trying to use msbuild to modify web.config and write to a new file, command succeeds but does nothing

Teagan Strauss 1 Reputation point
2021-01-15T16:57:37.85+00:00

I'm trying to write a PowerShell script to run on Atlassian Bamboo that calls msbuild to modify a web.config file based on a web.Beta.config file and write the results to a new web.Beta.config file in a new directory.
The msbuild command runs 'successfully', with 0 warnings and 0 errors in the build, but does not create anything.
The command I'm running is:
& 'Path To MsBuild\MSBuild' 'Path to Sln\MySln.sln' '/property:TransformInputFile="Path to Sln\Web\Web.config";TransformFile="Path to Sln\Web\Web.Beta.config";TransformOutputFile="Path to Sln\Publish\web.configs\Web.Beta.config"'

Not Monitored
Not Monitored
Tag not monitored by Microsoft.
36,222 questions
{count} votes