まだこの問題があるかどうかはわかりませんが、今日も問題がありました。(まだ問題に直面している場合)あなたや他の人に役立つ解決策を見つけました。
Build Process テンプレートをコピーすると、自動的に x:Class プロパティがTfsBuild.Processに設定されます。同じ値を持つプロセス テンプレートが複数ある場合、プロジェクトのビルド時にこのエラーが発生します。
<Activity mc:Ignorable="sads sap sap2010" x:Class="TfsBuild.Process" this:Process.BuildNumberFormat="$(BuildDefinitionName)_$(Date:yyyyMMdd)$(Rev:.r)" this:Process.AgentSettings="[New Microsoft.TeamFoundation.Build.Workflow.Activities.AgentSettings() With {.MaxWaitTime = New System.TimeSpan(4, 0, 0), .MaxExecutionTime = New System.TimeSpan(0, 0, 0), .TagComparison = Microsoft.TeamFoundation.Build.Workflow.Activities.TagComparison.MatchExactly}]" this:Process.Verbosity="[Microsoft.TeamFoundation.Build.Workflow.BuildVerbosity.Normal]" this:Process.OutputFullHistory="True" this:Process.OutputBranchOrigin="True" this:Process.OnlyOutputChangedFiles="True" this:Process.StartChangeset="0"......
TfsBuild.Processをすべてのテンプレートの別の名前 (例: TfsBuild.ProcessLabDefault )に置き換えることで問題を解決しました。this:Processのすべてのインスタンスも変更する必要があることに注意してください。これは、2 つがリンクされているためです (例: this:ProcessLabDefault )。
<Activity mc:Ignorable="sads sap sap2010" x:Class="TfsBuild.MyProcess" this:MyProcess.BuildNumberFormat="$(BuildDefinitionName)_$(Date:yyyyMMdd)$(Rev:.r)" this:MyProcess.AgentSettings="[New Microsoft.TeamFoundation.Build.Workflow.Activities.AgentSettings() With {.MaxWaitTime = New System.TimeSpan(4, 0, 0), .MaxExecutionTime = New System.TimeSpan(0, 0, 0), .TagComparison = Microsoft.TeamFoundation.Build.Workflow.Activities.TagComparison.MatchExactly}]" this:MyProcess.Verbosity="[Microsoft.TeamFoundation.Build.Workflow.BuildVerbosity.Normal]" this:MyProcess.OutputFullHistory="True" this:MyProcess.OutputBranchOrigin="True" this:MyProcess.OnlyOutputChangedFiles="True" this:MyProcess.StartChangeset="0"......
インターフェイスを使用してこれを変更する方法が見つかりませんでした.コードの表示と検索と置換が機能します。それが役に立てば幸い。