【问题标题】:Does TFS 2013 build supports VS 2012 solutions?TFS 2013 build 是否支持 VS 2012 解决方案?
【发布时间】:2014-04-26 23:54:49
【问题描述】:

我有一个在 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 模板

【问题讨论】:

    标签: build msbuild continuous-integration


    【解决方案1】:

    确保您使用 VS2013 创建构建定义。

    【讨论】:

      【解决方案2】:

      如果您在创建新构建定义时遇到此错误,请确保选择默认构建控制器。除非设置了构建控制器,否则脚本不知道自定义程序集在 TFS 中的位置。

      我浪费了半天时间才弄清楚。一旦我选择了默认的构建控制器,DLL 就被加载并且错误/警告消失了。

      【讨论】:

        猜你喜欢
        • 2013-07-16
        • 2014-01-18
        • 2015-03-12
        • 2013-11-13
        • 2016-08-25
        • 1970-01-01
        • 2019-11-19
        • 1970-01-01
        • 2015-10-06
        相关资源
        最近更新 更多