tfs 2012 - vs 2012 - manual build - test

Topics: General Questions
Oct 21, 2013 at 4:33 PM
Hi all,

I’m using visual Studio 2012 and BTDF 5.1 (BizTalk 2012). I have created a new build definition (manual).
I’m able to compile my biztalk project if I disable testing execution. If I enable it (“Disable Tests”=False) I receive the error below:

Could someone help me on this issue?

"Unable to cast object of type 'Microsoft.TeamFoundation.Build.Workflow.Activities.AgileTestPlatformSpec' to type 'Microsoft.TeamFoundation.Build.Workflow.Activities.TestAssemplySpec'"

Thanks in advance, Luca
Oct 24, 2013 at 6:10 AM
This is not related to the Deployment Framework for BizTalk and would be better addressed in the MSDN Forums.

Here's one other person with the same error:

Oct 27, 2013 at 8:37 AM
Hi Tom,

I'm not using the old defualt template, I'm using that provided by BTDF.

Oct 28, 2013 at 5:05 AM
In that case your situation seems to exactly match the situation in the MSDN forum. The template included in the Deployment Framework is the TFS 2010 DefaultTemplate.xaml with one minor edit. You are better off starting from a copy of DefaultTemplate.11.1.xaml and following the documentation to make the one minor change [see Customizations to the Team Build 2010 DefaultTemplate Build Process Template]. I haven't seen DefaultTemplate.11.1, but I assume that the one activity that I modified is the same or very close.

Jan 28, 2014 at 7:33 PM
Hello Tom,
I copied the DefaultTemplate.11.1 and saved it as BTDFDefaultTemplate.11.1.
My build is partially passing. It builds the sln project but fails on btdfproj with the following error:

$/CSI/Main/Source/Code/CSI/CSI.Validation/CSI.Validation.Deployment/Deployment.btdfproj - 1 error(s), 0 warning(s), View Log File
C:\Program Files (x86)\MSBuild\DeploymentFrameworkForBizTalk\5.0\BizTalkDeploymentFramework.WiXSetup.targets (121): Could not copy the file "..\CSI.Validation.Schemas\bin\Release\CSI.Validation.Schemas.dll" because it was not found.

I can see the file is there in the folder. BTDF is working fine from VS.

I put the xaml and deployment log at - Xaml - Log

Your help will be very much appreciated.
Jan 29, 2014 at 4:52 AM
Hi Tahir,

You said that you copied DefaultTemplate.11.1 to BTDFDefaultTemplate.11.1, but did you make the OutDir change to it from the documentation? The error you listed is what I would expect from the OutDir redirection that TFS Build does by default, where it sends all build outputs to a single binaries folder. Since the .btdfproj is not a real Visual Studio solution, it remains unaware of the redirection.