私はMSBuildのでAfterBuildターゲットにBuildStepを追加しようとしていると私は、次ののMSBuildとBuildUri
<Target Name="AfterCompile">
<ItemGroup>
<TestAssemblies Include="$(OutDir)\DataStoreUnitTests.dll" />
</ItemGroup>
<BuildStep
Name="Run unit Tests"
TeamFoundationServerUrl="$(TeamFoundationServerUrl)"
BuildUri="$(BuildUri)"
Message="Running unit tests">
<Output TaskParameter="Id" PropertyName="StepId" />
</BuildStep>
<Gallio
Assemblies="@(TestAssemblies)"
ReportTypes="html"
ReportFileNameFormat="buildreport{0}{1}"
ReportOutputDirectory="." />
<BuildStep
TeamFoundationServerUrl="$(TeamFoundationServerUrl)"
BuildUri="$(BuildUri)"
Id="$(StepId)"
Message="Yay! All tests succeded!"
Status="Succeeded" />
<OnError ExecuteTargets="MarkBuildStepAsFailed" />
</Target>
<Target Name="MarkBuildStepAsFailed">
<BuildStep
TeamFoundationServerUrl="$(TeamFoundationServerUrl)"
BuildUri="$(BuildUri)"
Id="$(StepId)"
Message="Tests have failed. See test report in drop folder for details."
Status="Failed" />
</Target>
を使用していますが、私はMSBuildの中でそれを実行したときに、私は次のエラーを取得する:
error MSB4044: The "BuildStep" task was not given a value for the required parameter "BuildUri".
私はなぜ、誰にも分かりません。