Locked LabDefaultTemplate.xaml Build and Compile Error

  • Monday, August 06, 2012 5:59 PM
     
     
    <dir>

    Hi-

    I'm encountering the following errors when running a build/deploy/test workflow with my labdefaulttemplate.xaml.  When I open the template in VS, there are tons of compile errors listed.  Based on other forum posts, I'm assuming I have a bad copy of the template.  How can I get a 'good' copy?  I've created new projects, but the templates are always the same is this one, so I don't believe it's an upgrade issue.  If anyone has a working copy of the template for VS 2010, TFS 2010 I would really appreciate a copy or a location to download a good copy.

    Thanks in advance!

    <dir>
    <dir>

    TF215097: An error occurred while initializing a build for build definition Project Lab Workflow: The build process failed validation. Details:  Validation Error: The private implementation of activity '1: DynamicActivity' has the following validation error:   Compiler error(s) encountered processing expression "LabWorkflowParameters.TestParameters.RunTest = True". 'LabWorkflowParameters' is not declared. It may be inaccessible due to its protection level.  Validation Error: The private implementation of activity '1: DynamicActivity' has the following validation error:   Compiler error(s) encountered processing expression "TestResults.PassedTests <> TestResults.TotalTests". 'TestResults' is not declared. It may be inaccessible due to its protection level. 'TestResults' is not declared. It may be inaccessible due to its protection level.  Validation Error: The private implementation of activity '1: DynamicActivity' has the following validation error:   Compiler error(s) encountered processing expression "(LabWorkflowParameters.BuildDetails.IsTeamSystemBuild = True AndAlso LabWorkflowParameters.BuildDetails.QueueNewBuild = True) Or (LabWorkflowParameters.DeploymentDetails.DeploymentNeeded = True)". 'LabWorkflowParameters' is not declared. It may be inaccessible due to its protection level. 'LabWorkflowParameters' is not declared. It may be inaccessible due to its protection level. 'LabWorkflowParameters' is not declared. It may be inaccessible due to its protection level.  Validation Error: The private implementation of activity '1: DynamicActivity' has the following validation error:   Compiler error(s) encountered processing expression "String.Format("{0}", BuildDetail.BuildNumber)". 'BuildDetail' is not declared. It may be inaccessible due to its protection level.  Validation Error: The private implementation of activity '1: DynamicActivity' has the following validation error:   Compiler error(s) encountered processing expression "LabWorkflowParameters.DeploymentDetails.DeploymentNeeded = True". 'LabWorkflowParameters' is not declared. It may be inaccessible due to its protection level.  Validation Error: The private implementation of activity '1: DynamicActivity' has the following validation error:   Compiler error(s) encountered processing expression "LabWorkflowParameters.DeploymentDetails.TakePostDeploymentSnapshot = True". 'LabWorkflowParameters' is not declared. It may be inaccessible due to its protection level.  Validation Error: The private implementation of activity '1: DynamicActivity' has the following validation error:   Compiler error(s) encountered processing expression "String.Format("{0}_{1}", BuildDetail.BuildDefinition.Name, BuildDetail.BuildNumber)". 'BuildDetail' is not declared. It may be inaccessible due to its protection level. 'BuildDetail' is not declared. It may be inaccessible due to its protection level.  Validation Error: The private implementation of activity '1: DynamicActivity' has the following validation error:   Compiler error(s) encountered processing expression "String.IsNullOrEmpty(LabWorkflowParameters.DeploymentDetails.PostDeploymentSnapshotPath) = False". 'LabWorkflowParameters' is not declared. It may be inaccessible due to its protection level.  Validation Error: The private implementation of activity '1: DynamicActivity' has the following validation error:   Compiler error(s) encountered processing expression "LabWorkflowParameters.DeploymentDetails.PostDeploymentSnapshotPath". 'LabWorkflowParameters' is not declared. It may be inaccessible due to its protection level.  Validation Error: The private implementation of activity '1: DynamicActivity' has the following validation error:   Compiler error(s) encountered processing expression "String.IsNullOrEmpty(LabWorkflowParameters.DeploymentDetails.PostDeploymentSnapshotName) = False". 'LabWorkflowParameters' is not declared. It may be inaccessible due to its protection level.  Validation Error: The private implementation of activity '1: DynamicActivity' has the following validation error:   Compiler error(s) encountered processing expression "String.Format("{0}_{1}", LabWorkflowParameters.DeploymentDetails.PostDeploymentSnapshotName, BuildDetail.BuildNumber)". 'LabWorkflowParameters' is not declared. It may be inaccessible due to its protection level. 'BuildDetail' is not declared. It may be inaccessible due to its protection level.  Validation Error: The private implementation of activity '1: DynamicActivity' has the following validation error:   Compiler error(s) encountered processing expression "scriptDetails.AgentSpec". 'scriptDetails' is not declared. It may be inaccessible due to its protection level.  Validation Error: The private implementation of activity '1: DynamicActivity' has the following validation error:   Compiler error(s) encountered processing expression "LabWorkflowParameters.DeploymentDetails.Scripts". 'LabWorkflowParameters' is not declared. It may be inaccessible due to its protection level.  Validation Error: The private implementation of activity '1: DynamicActivity' has the following validation error:   Compiler error(s) encountered processing expression "LabWorkflowParameters.EnvironmentDetails.RevertToSnapshot = True". 'LabWorkflowParameters' is not declared. It may be inaccessible due to its protection level.  Validation Error: The private implementation of activity '1: DynamicActivity' has the following validation error:   Compiler error(s) encountered processing expression "LabWorkflowParameters.EnvironmentDetails.SnapshotName". 'LabWorkflowParameters' is not declared. It may be inaccessible due to its protection level.  Validation Error: The private implementation of activity '1: DynamicActivity' has the following validation error:   Compiler error(s) encountered processing expression "LabWorkflowParameters.EnvironmentDetails.Disposition = Microsoft.TeamFoundation.Lab.Client.LabEnvironmentDisposition.Active". 'LabWorkflowParameters' is not declared. It may be inaccessible due to its protection level. 'TeamFoundation' is not a member of 'Microsoft'.  Validation Error: The private implementation of activity '1: DynamicActivity' has the following validation error:   Compiler error(s) encountered processing expression "LabWorkflowParameters.EnvironmentDetails.HostGroupName". 'LabWorkflowParameters' is not declared. It may be inaccessible due to its protection level.  Validation Error: The private implementation of activity '1: DynamicActivity' has the following validation error:   Compiler error(s) encountered processing expression "BuildDetail.TeamProject". 'BuildDetail' is not declared. It may be inaccessible due to its protection level.  Validation Error: The private implementation of activity '1: DynamicActivity' has the following validation error:   Compiler error(s) encountered processing expression "LabWorkflowParameters.EnvironmentDetails.LabEnvironmentName". 'LabWorkflowParameters' is not declared. It may be inaccessible due to its protection level.  Validation Error: The private implementation of activity '1: DynamicActivity' has the following validation error:   Compiler error(s) encountered processing expression "LabWorkflowParameters.EnvironmentDetails.LabLibraryShareName". 'LabWorkflowParameters' is not declared. It may be inaccessible due to its protection level.  Validation Error: The private implementation of activity '1: DynamicActivity' has the following validation error:   Compiler error(s) encountered processing expression "BuildDetail.TeamProject". 'BuildDetail' is not declared. It may be inaccessible due to its protection level.  Validation Error: The private implementation of activity '1: DynamicActivity' has the following validation error:   Compiler error(s) encountered processing expression "LabWorkflowParameters.EnvironmentDetails.HostGroupName". 'LabWorkflowParameters' is not declared. It may be inaccessible due to its protection level.  Validation Error: The private implementation of activity '1: DynamicActivity' has the following validation error:   Compiler error(s) encountered processing expression "Microsoft.TeamFoundation.Build.Common.DeploymentInformationTypes.Deploy". 'TeamFoundation' is not a member of 'Microsoft'.  Validation Error: The private implementation of activity '1: DynamicActivity' has the following validation error:   Compiler error(s) encountered processing expression "String.Format("Lab environment: {0}", LabWorkflowParameters.EnvironmentDetails.LabEnvironmentName)". 'LabWorkflowParameters' is not declared. It may be inaccessible due to its protection level.  Validation Error: The private implementation of activity '1: DynamicActivity' has the following validation error:   Compiler error(s) encountered processing expression "If(LabWorkflowParameters.EnvironmentDetails.Disposition = Microsoft.TeamFoundation.Lab.Client.LabEnvironmentDisposition.Active, LabWorkflowParameters.EnvironmentDetails.LabEnvironmentName, String.Format("{0}_{1}", LabWorkflowParameters.EnvironmentDetails.NewLabEnvironmentName, BuildDetail.BuildNumber))". 'LabWorkflowParameters' is not declared. It may be inaccessible due to its protection level. 'TeamFoundation' is not a member of 'Microsoft'. 'LabWorkflowParameters' is not declared. It may be inaccessible due to its protection level. 'LabWorkflowParameters' is not declared. It may be inaccessible due to its protection level. 'BuildDetail' is not declared. It may be inaccessible due to its protection level.  Validation Error: The private implementation of activity '1: DynamicActivity' has the following validation error:   Compiler error(s) encountered processing expression "LabWorkflowParameters.BuildDetails.IsTeamSystemBuild = True AndAlso LabWorkflowParameters.BuildDetails.QueueNewBuild = True". 'LabWorkflowParameters' is not declared. It may be inaccessible due to its protection level. 'LabWorkflowParameters' is not declared. It may be inaccessible due to its protection level.  Validation Error: The private implementation of activity '1: DynamicActivity' has the following validation error:   Compiler error(s) encountered processing expression "LabWorkflowParameters.BuildDetails.BuildUri". 'LabWorkflowParameters' is not declared. It may be inaccessible due to its protection level.  Validation Error: The private implementation of activity '1: DynamicActivity' has the following validation error:   Compiler error(s) encountered processing expression "ChildBuildDetail.Uri". 'ChildBuildDetail' is not declared. It may be inaccessible due to its protection level.  Validation Error: The private implementation of activity '1: DynamicActivity' has the following validation error:   Compiler error(s) encountered processing expression "BuildDetail.TeamProject". 'BuildDetail' is not declared. It may be inaccessible due to its protection level.  Validation Error: The private implementation of activity '1: DynamicActivity' has the following validation error:   Compiler error(s) encountered processing expression "LabWorkflowParameters.BuildDetails.BuildDefinitionName". 'LabWorkflowParameters' is not declared. It may be inaccessible due to its protection level. 

    </dir>
    </dir>


    </dir>

All Replies

  • Wednesday, August 08, 2012 10:06 AM
     
     

    Hi TestNC, I have to agree with you that maybe you got a corrupt template, and I will send me my copy once I am back in office.

    Thanks

  • Thursday, August 09, 2012 3:22 AM
    Moderator
     
     Answered

    Hi TestNC,

    You can get a fresh new build process template from a new fresh project template: In the Team Explorer, right-click the Team Project Collection and select Team Project Collection Settings->Process Template Manager->select one template and click Download button. And then in the new downloaded project template folder, go to \Build\Templates then add the LabDefaultTemplate.xaml file into TFS Version Control.

    Thanks.


    Vicky Song [MSFT]
    MSDN Community Support | Feedback to us