I have a build definition setup in Team Services that is publishing the web.config file as an additional artifact so that I can run the tokenizer task on it. In my visual studio project I have the tokens setup in the Web.Release.config file. When the build is run, the tokens are inserted in to the config file which are then replaced by the release management process for each of the environments.
This has been working for the past few months. But today it started failing with the error "not found PathtoPublish" for the web.config file. In the Publish Artifacts task, I have the Path to publish setup as
"MyWebProject\obj\Release\Package\PackageTmp\Web.config".
Looks like now it is expecting a path like
"SolutionFolder\Branch\MyWebProject\obj\Release\Package\PackageTmp\Web.config".
I guess I need to use a variable for the path. But I cant figure out whats the right variable. I need to pick up the transformed Web.config file so that the tokens are in place. Strange thing the old path is working fine for a 2nd team projects build definition.