MSBuild Delete task: name conflict with SDC Task

Jul 9, 2008 at 2:39 PM
Edited Jul 9, 2008 at 2:41 PM
Hi,

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="http://schemas.microsoft.com/developer/msbuild/2003" xmlns:msbuild="http://schemas.microsoft.com/developer/msbuild/2003" 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?

Thanks,
Paolo

 

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

More details logged here: http://www.codeplex.com/sdctasks/WorkItem/View.aspx?WorkItemId=10275
Jul 9, 2008 at 3:31 PM
That worked, thank you!