MSBuild Project files and BuildUri

C

Colin Desmond

I have the following BuildStep in my msbuild proj file:

<Target Name="AfterCompile">
<ItemGroup>
<TestAssemblies Include="$(OutDir)\PBSMSDataStoreUnitTests.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>

And when I run it in MSBuild I get the following error:

error MSB4044: The "BuildStep" task was not given a value for the required
parameter "BuildUri".

And I cannot see why, does anyone know?

Many thanks

Colin
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Top