我在VS2012中创建的解决方案最近转移到了TFS2013 Express。当我尝试在Team Explorer 2013中定义构建并选择解决方案时,TFS会返回以下问题:
Parameter 1. Projects: cannot convert value '$/[MY SOLUTION PATH AND NAME].sln' of type Microsoft.TeamFoundation.Build.Workflow.Activities.StringList to type System.String[], reset to default.
Parameter 2. Configurations: cannot convert value 'Microsoft.TeamFoundation.Build.Workflow.Activities.PlatformConfigurationList' of type Microsoft.TeamFoundation.Build.Workflow.Activities.PlatformConfigurationList to type System.String[], reset to default.
当我从VS 2012创建构建时 - 我在设置自动测试时遇到问题:
The parameter AutomatedTests could not be loaded because the type InArgument<Microsoft.TeamFoundation.Build.Common.BuildParameter[]> was not found.
The parameter AdvancedTestSettings could not be loaded because the type InArgument<Microsoft.TeamFoundation.Build.Common.BuildParameter> was not found.
The parameter AdvancedBuildSettings could not be loaded because the type InArgument<Microsoft.TeamFoundation.Build.Common.BuildParameter> was not found.
The parameter AgentSettings could not be loaded because the type InArgument<Microsoft.TeamFoundation.Build.Common.BuildParameter> was not found.
The member Microsoft.TeamFoundation.Build.Workflow.ProcessParameterMetadata.ValueFormatString for parameter Metadata could not be loaded because no such member exists.
我正在使用TfvsTemplate.12.xaml模板
答案 0 :(得分:5)
确保使用VS2013创建构建定义。
答案 1 :(得分:0)
如果在创建新构建定义时出现此错误,请确保选择默认构建控制器。除非设置了构建控制器,否则脚本不知道自定义程序集在TFS中的位置。
我浪费了半天的时间来搞清楚这一点。一旦我选择了默认的构建控制器,DLL就被加载了,错误/警告就消失了。