I am having problems copying files using MSbuild, and the error messages I receive seem to be contradictory (using TFS 2008 to build).
I currently have the following in my build script
<PropertyGroup> <ReleaseRoot>$(DropLocation)\Latest\x86\Release</ReleaseRoot> <WebRoot>$(ReleaseRoot)\_PublishedWebsites\Web</WebRoot> <DBRoot>$(ReleaseRoot)\Database</DBRoot> <TempHolingDir>$(ReleaseRoot)\temp)</TempHolingDir> <WebConfig>$(WebRoot)\Web.config</WebConfig> <DatabaseUpdate>$(DBRoot)\databaseupdate.exe</DatabaseUpdate> </PropertyGroup> <Copy SourceFiles="$(WebConfig);$(DatabaseUpdate)" DestinationFolder="$(TempHoldingDir)" ContinueOnError="false" />
When I run the build, I get
error MSB3023: there is no destination for copying. Please put either "DestinationFiles" or "DestinationDirectory".
Then I change the DestinationFolder to a DestinationDirectory and I got
error MSB4064: The "DestinationDirectory" parameter is not supported by the Copy task. Verify that a parameter exists on the task, and this is a custom publication property of the instance. error MSB4063: The task "Copy" cannot be initialized with its input parameters.
These errors seem to contradict each other, what exactly am I missing here?
source share