TFS Builds does not find _PublishedWebsites / Web.Config
After moving the source to a different collection (one team project for all files) and manually re-creating the assemblies, I get the following build error.
C:\b\1\1\src\Src\Case\Case.UI\Case.UI.csproj(803,5): error : Could not write Destination file: Could not find a part of the path 'C:\b\1\1\src\Src\Case\Case.UI\bin\_PublishedWebsites\Case.UI\Web.config'.
This only applies when using MS-Build arguments:
/p:DeployOnBuild=True /p:TransformConfigFiles=True
The matching string "apparently" is associated with the Web.config transforms (which we need) and refers to the project file here:
<TransformXml Source="Web.config" Transform="$(ProjectConfigTransformFileName)" Destination="$(WebProjectOutputDir)\Web.config" />
source to share