I have an automated build process that's been running successfully using prior versions of the command line builder. I was trying to run the process today and ran into an error I've never seen before.
In my project.xml file, I use full paths to all of my source files, as they are on a separate drive from where I am actually running the build. For example:
<Files dir="basedir"> <!-- Common files --> <File source="J:\Releases\Foo\Bar\Common.dll"/> <Folder source="J:\Releases\Foo\Bar\Baz" />
Later on in my project file I specify a couple of source sub-folders that are supposed to go into sub-folders under "basedir":
<File source="J:\Releases\Foo\Bar\log4netIM.config"/> <Files dir="ConfigurationFiles"> <File source="J:\Releases\Foo\Bar\ConfigurationFiles\ReportConfiguration.xml"/> <Files dir="ConfigTemplates"> <File source="J:\Releases\Foo\Bar\ConfigurationFiles\ConfigTemplates\Template_MyApp.exe.config"/> </Files> </Files>
When I run the build, my command shell is running on a different drive and folder from the location in which my source files live (E:\BuildNewVersion). My .wyp and .xml files are a couple of folders below the folder in which my command shell is running. I use the following command line:
E:BuildNewVersion>wybuild.cmd.exe Build\ServerUpdate\Server.wyp /bu /bwu -add="Test.xml"
The output tells me:
Adding versions from file: Succeeded
Building wyUpdate: Succeeded
Building updates[Error]: Could not find file 'Build\ServerUpdate\ConfigurationFiles\ConfigTemplates\Template_MyApp.exe.config'.
It looks as though the full path from the .xml file is being replaced by the relative path to the .wyp file. I can't fathom why this is occurring, given that my .xml file explicitly gives a full path, the file does in fact exist at that location, and wybuild.cmd.exe did not complain about any of the preceding files.
What am I doing wrong?