We have a few projects in our VS 2019 Solution that take their config files from other projects and then perform various config transforms on them.
In the PreBuild event I have the following,
xcopy "$(SolutionDir)$(TargetName)\web.config" "$(ProjectDir)" /Y /F
When Bamboo runs the MSBuild command it fails with,
error MSB3073: The command "xcopy "..\Project1\web.config" "D:\bamboo\build-dir\50954242\WS-PROD2-COMPILERELEASE\SolutionFolder\Project2\" /Y /F" exited with code 4.
If I copy the command from the error message and execute it at a command prompt it completes successfully.
Hoping someone has some suggestions on resolving this issue.
Cheers
Phil