This project is read-only.

MSBuild Delete task: name conflict with SDC Task

Jul 9, 2008 at 3:39 PM
Edited Jul 9, 2008 at 3:41 PM

When I try to use the standard Delete task I get the following error:

The "Microsoft.Sdc.Tasks.BizTalk2004.ReceiveHandler.Delete" task could not be loaded from the assembly D:\BuildTools\Microsoft.Sdc.Tasks.BizTalk.dll. Could not load file or assembly

I tried resolving the element name conflict by using the namespace declaration below:

<Project DefaultTargets="DesktopBuild" xmlns="" xmlns:msbuild="" ToolsVersion="3.5">

 and then calling the task as follows:

<msbuild:Delete Files="@(BuildWwsWebConfig)" />


VS2008 is happy with the syntax and also comes up with the proper Intellisense as soon as I type the colon. However now I am getting:

 error MSB4097: The element <msbuild:Delete> beneath element <Target> may not have a custom XML namespace.

Any ideas?



Jul 9, 2008 at 3:58 PM
Rather than doing that, open the Microsoft.Sdc.Common.tasks file and comment out the BizTalk Tasks.

More details logged here:
Jul 9, 2008 at 4:31 PM
That worked, thank you!