Well I created a build type and built the team build type and i encountered the following error and i also pasted the Buildlog.txt and TFSBuild.proj file details from the drop location.
Build steps - Failed
==============
Getting Sources - Failed
Here is my log file
=============
Build started 12/6/2007 4:12:06 PM.
__________________________________________________
Project "c:\Build\TeamBuildTutorial\test3\BuildType\TFSBuild.proj" (EndToEndIteration target(s)):
Target InitializeEndToEndIteration:
UpdateBuildNumberDropLocation BuildNumber='test3_20071206.1' DropLocation='\\tfsBuild\Drop\test3_20071206.1'
Target InitializeBuild:
Creating directory "c:\Build\TeamBuildTutorial\test3\BuildType\..\Sources".
Target CoreLabel:
Label Name="test3_20071206.1" Recursive=True Version="WTFSBUILD_TeamBuildTutorial_test3" Child="replace" Workspace="TFSBUILD_TeamBuildTutorial_test3" Files="$/TeamBuildTutorial"
C:\Program Files\MSBuild\Microsoft\VisualStudio\v8.0\TeamBuild\Microsoft.TeamFoundation.Build.targets(348,5): error : Error: Unable to determine the workspace.
C:\Program Files\MSBuild\Microsoft\VisualStudio\v8.0\TeamBuild\Microsoft.TeamFoundation.Build.targets(348,5): error MSB4018: The "Label" task failed unexpectedly.
C:\Program Files\MSBuild\Microsoft\VisualStudio\v8.0\TeamBuild\Microsoft.TeamFoundation.Build.targets(348,5): error MSB4018: System.ArgumentException: Error: Unable to determine the workspace.
C:\Program Files\MSBuild\Microsoft\VisualStudio\v8.0\TeamBuild\Microsoft.TeamFoundation.Build.targets(348,5): error MSB4018: at Microsoft.TeamFoundation.Build.Tasks.VersionControlTask.GetCurrentWorkspace()
C:\Program Files\MSBuild\Microsoft\VisualStudio\v8.0\TeamBuild\Microsoft.TeamFoundation.Build.targets(348,5): error MSB4018: at Microsoft.TeamFoundation.Build.Tasks.VersionControlTask.GetRepositoryUrl(String fileName, String workspaceName, String workspaceOwner)
C:\Program Files\MSBuild\Microsoft\VisualStudio\v8.0\TeamBuild\Microsoft.TeamFoundation.Build.targets(348,5): error MSB4018: at Microsoft.TeamFoundation.Build.Tasks.VersionControlTask.GetWorkspaceInfo(ITaskItem[] fileSpecs, String& repositoryUrl, String& workspaceName, String& workspaceOwner)
C:\Program Files\MSBuild\Microsoft\VisualStudio\v8.0\TeamBuild\Microsoft.TeamFoundation.Build.targets(348,5): error MSB4018: at Microsoft.TeamFoundation.Build.Tasks.VersionControlTask.GetWorkspaceInfoOrRepositoryUrl(ITaskItem[] fileSpecs, String& repositoryUrl, String& workspaceName, String& workspaceOwner)
C:\Program Files\MSBuild\Microsoft\VisualStudio\v8.0\TeamBuild\Microsoft.TeamFoundation.Build.targets(348,5): error MSB4018: at Microsoft.TeamFoundation.Build.Tasks.Label.Execute()
C:\Program Files\MSBuild\Microsoft\VisualStudio\v8.0\TeamBuild\Microsoft.TeamFoundation.Build.targets(348,5): error MSB4018: at Microsoft.Build.BuildEngine.TaskEngine.ExecuteTask(ExecutionMode howToExecuteTask, Hashtable projectItemsAvailableToTask, BuildPropertyGroup projectPropertiesAvailableToTask, Boolean& taskClassWasFound)
Done building target "CoreLabel" in project "TFSBuild.proj" -- FAILED.
Done building project "TFSBuild.proj" -- FAILED.
Build FAILED.
C:\Program Files\MSBuild\Microsoft\VisualStudio\v8.0\TeamBuild\Microsoft.TeamFoundation.Build.targets(348,5): error : Error: Unable to determine the workspace.
C:\Program Files\MSBuild\Microsoft\VisualStudio\v8.0\TeamBuild\Microsoft.TeamFoundation.Build.targets(348,5): error MSB4018: The "Label" task failed unexpectedly.
C:\Program Files\MSBuild\Microsoft\VisualStudio\v8.0\TeamBuild\Microsoft.TeamFoundation.Build.targets(348,5): error MSB4018: System.ArgumentException: Error: Unable to determine the workspace.
C:\Program Files\MSBuild\Microsoft\VisualStudio\v8.0\TeamBuild\Microsoft.TeamFoundation.Build.targets(348,5): error MSB4018: at Microsoft.TeamFoundation.Build.Tasks.VersionControlTask.GetCurrentWorkspace()
C:\Program Files\MSBuild\Microsoft\VisualStudio\v8.0\TeamBuild\Microsoft.TeamFoundation.Build.targets(348,5): error MSB4018: at Microsoft.TeamFoundation.Build.Tasks.VersionControlTask.GetRepositoryUrl(String fileName, String workspaceName, String workspaceOwner)
C:\Program Files\MSBuild\Microsoft\VisualStudio\v8.0\TeamBuild\Microsoft.TeamFoundation.Build.targets(348,5): error MSB4018: at Microsoft.TeamFoundation.Build.Tasks.VersionControlTask.GetWorkspaceInfo(ITaskItem[] fileSpecs, String& repositoryUrl, String& workspaceName, String& workspaceOwner)
C:\Program Files\MSBuild\Microsoft\VisualStudio\v8.0\TeamBuild\Microsoft.TeamFoundation.Build.targets(348,5): error MSB4018: at Microsoft.TeamFoundation.Build.Tasks.VersionControlTask.GetWorkspaceInfoOrRepositoryUrl(ITaskItem[] fileSpecs, String& repositoryUrl, String& workspaceName, String& workspaceOwner)
C:\Program Files\MSBuild\Microsoft\VisualStudio\v8.0\TeamBuild\Microsoft.TeamFoundation.Build.targets(348,5): error MSB4018: at Microsoft.TeamFoundation.Build.Tasks.Label.Execute()
C:\Program Files\MSBuild\Microsoft\VisualStudio\v8.0\TeamBuild\Microsoft.TeamFoundation.Build.targets(348,5): error MSB4018: at Microsoft.Build.BuildEngine.TaskEngine.ExecuteTask(ExecutionMode howToExecuteTask, Hashtable projectItemsAvailableToTask, BuildPropertyGroup projectPropertiesAvailableToTask, Boolean& taskClassWasFound)
0 Warning(s)
2 Error(s)
Time Elapsed 00:00:02.32
TFSBuild.Proj
==========
<?
xmlversion="1.0"encoding="utf-8"?><
ProjectDefaultTargets="DesktopBuild"xmlns="http://schemas.microsoft.com/developer/msbuild/2003"><!--
TO EDIT BUILD TYPE DEFINITIONTo edit the build type, you will need to edit this file which was generated
by the Create New Build Type wizard. This file is under source control and
needs to be checked out before making any changes.
The file is available at -
$/{TeamProjectName}/TeamBuildTypes/{BuildTypeName}
where you will need to replace TeamProjectName and BuildTypeName with your
Team Project and Build Type name that you created
Checkout the file
1. Open Source Control Explorer by selecting View -> Other Windows -> Source Control Explorer
2. Ensure that your current workspace has a mapping for the $/{TeamProjectName}/TeamBuildTypes folder and
that you have done a "Get Latest Version" on that folder
3. Browse through the folders to {TeamProjectName}->TeamBuildTypes->{BuildTypeName} folder
4. From the list of files available in this folder, right click on TfsBuild.Proj. Select 'Check Out For Edit...'
Make the required changes to the file and save
Checkin the file
1. Right click on the TfsBuild.Proj file selected in Step 3 above and select 'Checkin Pending Changes'
2. Use the pending checkin dialog to save your changes to the source control
Once the file is checked in with the modifications, all future builds using
this build type will use the modified settings
--><!--
Do not edit this --><
ImportProject="$(MSBuildExtensionsPath)\Microsoft\VisualStudio\v8.0\TeamBuild\Microsoft.TeamFoundation.Build.targets" /><
ProjectExtensions><!--
DESCRIPTIONThe description is associated with a build type. Edit the value for making changes.
--><
Description></
Description><!--
BUILD MACHINEName of the machine which will be used to build the solutions selected.
--><
BuildMachine>tfsBuild</BuildMachine></
ProjectExtensions><
PropertyGroup><!--
TEAM PROJECTThe team project which will be built using this build type.
--><
TeamProject>TeamBuildTutorial</TeamProject><!--
BUILD DIRECTORYThe directory on the build machine that will be used to build the
selected solutions. The directory must be a local path on the build
machine (e.g. c:\build).
--><
BuildDirectoryPath>c:\Build</BuildDirectoryPath><!--
DROP LOCATIONThe location to drop (copy) the built binaries and the log files after
the build is complete. This location has to be a valid UNC path of the
form \\Server\Share. The build machine service account and application
tier account need to have read write permission on this share.
--><
DropLocation>\\tfsBuild\Drop</DropLocation><!--
TESTINGSet this flag to enable/disable running tests as a post build step.
--><
RunTest>false</RunTest><!--
WorkItemFieldValuesAdd/edit key value pairs to set values for fields in the work item created
during the build process. Please make sure the field names are valid
for the work item type being used.
--><
WorkItemFieldValues>Symptom=build break;Steps To Reproduce=Start the build using Team Build</WorkItemFieldValues><!--
CODE ANALYSISTo change CodeAnalysis behavior edit this value. Valid values for this
can be Default,Always or Never.
Default - To perform code analysis as per the individual project settings
Always - To always perform code analysis irrespective of project settings
Never - To never perform code analysis irrespective of project settings
--><
RunCodeAnalysis>Never</RunCodeAnalysis><!--
UPDATE ASSOCIATED WORK ITEMSSet this flag to enable/disable updating associated workitems on a successful build
--><
UpdateAssociatedWorkItems>true</UpdateAssociatedWorkItems><!--
Title for the work item created on build failure --><
WorkItemTitle>Build failure in build:</WorkItemTitle><!--
Description for the work item created on build failure --><
DescriptionText>This work item was created by Team Build on a build failure.</DescriptionText><!--
Text pointing to log file location on build failure --><
BuildlogText>The build log file is at:</BuildlogText><!--
Text pointing to error/warnings file location on build failure --><
ErrorWarningLogText>The errors/warnings log file is at:</ErrorWarningLogText></
PropertyGroup><
ItemGroup><!--
SOLUTIONSThe path of the solutions to build. To add/delete solutions, edit this
value. For example, to add a solution MySolution.sln, add following line -
<SolutionToBuild Include="$(SolutionRoot)\path\MySolution.sln" />
To change the order in which the solutions are build, modify the order in
which the solutions appear below.
--><
SolutionToBuildInclude="$(SolutionRoot)\TeamBuildTutorial.sln" /></
ItemGroup><
ItemGroup><!--
CONFIGURATIONSThe list of configurations to build. To add/delete configurations, edit
this value. For example, to add a new configuration, add following lines -
<ConfigurationToBuild Include="Debug|x86">
<FlavorToBuild>Debug</FlavorToBuild>
<PlatformToBuild>x86</PlatformToBuild>
</ConfigurationToBuild>
The Include attribute value should be unique for each ConfigurationToBuild node.
--><
ConfigurationToBuildInclude="Debug|Any CPU"><
FlavorToBuild>Debug</FlavorToBuild><
PlatformToBuild>Any CPU</PlatformToBuild></
ConfigurationToBuild></
ItemGroup><
ItemGroup><!--
TEST ARGUMENTSIf the RunTest is set to true then the following test arguments will be
used to run tests.
To add/delete new testlist or to choose a metadata file (.vsmdi) file, edit this value.
For e.g. to run BVT1 and BVT2 type tests mentioned in the Helloworld.vsmdi file, add the following -
<MetaDataFile Include="$(SolutionRoot)\HelloWorld\HelloWorld.vsmdi">
<TestList>BVT1;BVT2</TestList>
</MetaDataFile>
Where BVT1 and BVT2 are valid test types defined in the HelloWorld.vsmdi file.
MetaDataFile - Full path to test metadata file.
TestList - The test list in the selected metadata file to run.
Please note that you need to specify the vsmdi file relative to $(SolutionRoot)
--><
MetaDataFileInclude=""><
TestList> </TestList></
MetaDataFile></
ItemGroup><
ItemGroup><!--
ADDITIONAL REFERENCE PATHThe list of additional reference paths to use while resolving references.
For example,
<AdditionalReferencePath Include="C:\MyFolder\" />
<AdditionalReferencePath Include="C:\MyFolder2\" />
--></
ItemGroup></
Project>
Any one know the root cause of the problem and how to fix it.
Thanks in advance..
Regards
Bala