Solution for TFS Build Failed Due to Below Errors
Release | Any CPU7 error(s), 1 warning(s)
$/TailsPin Toys/TeamBuildTypes/BuildAutomation_Aug/TFSBuild.proj ('CompileConfiguration' target(s)) - 7 error(s), 1 warning(s), View Log File
C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\TeamBuild\Microsoft.TeamFoundation.Build.targets (1146): Could not write lines to file "E:\Builds\1040\TailsPin Toys\TailsPinToysBuild\src\SourceCode\Dev & Release\TailsPinToys Framework\FrameworkComponents\TailsPinToys.FrameWorkComponents.sln.Release.vsprops". Could not find a part of the path 'E:\Builds\1040\TailsPin Toys\TailsPinToysBuild\src\SourceCode\Dev & Release\TailsPinToys Framework\FrameworkComponents\TailsPinToys.FrameWorkComponents.sln.Release.vsprops'.
C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\TeamBuild\Microsoft.TeamFoundation.Build.targets (1162): The project file "E:\Builds\1040\TailsPin Toys\TailsPinToysBuild\src\SourceCode\Dev & Release\TailsPinToysBuild\MW\TailsPinToys.MW.sln" was not found.
C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\TeamBuild\Microsoft.TeamFoundation.Build.targets (1146): Could not write lines to file "E:\Builds\1040\TailsPin Toys\TailsPinToysBuild\src\SourceCode\Dev & Release\TailsPinToysBuild\MW\Approval\TailsPinToys.MW.Approval.sln.Release.vsprops". Could not find a part of the path 'E:\Builds\1040\TailsPin Toys\TailsPinToysBuild\src\SourceCode\Dev & Release\TailsPinToysBuild\MW\Approval\TailsPinToys.MW.Approval.sln.Release.vsprops'.
C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\TeamBuild\Microsoft.TeamFoundation.Build.targets (1146): Could not write lines to file "E:\Builds\1040\TailsPin Toys\TailsPinToysBuild\src\SourceCode\Dev & Release\TailsPinToysBuild\MW\InterfaceIntegration\InterfaceIntegration.sln.Release.vsprops". Could not find a part of the path 'E:\Builds\1040\TailsPin Toys\TailsPinToysBuild\src\SourceCode\Dev & Release\TailsPinToysBuild\MW\InterfaceIntegration\InterfaceIntegration.sln.Release.vsprops'.
C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\TeamBuild\Microsoft.TeamFoundation.Build.targets (1146): Could not write lines to file "E:\Builds\1040\TailsPin Toys\TailsPinToysBuild\src\SourceCode\Dev & Release\TailsPinToysBuild\MW\InterfaceIntegration\TailsPinToys.Interface.Services\TailsPinToys.Interface.Services.sln.Release.vsprops". Could not find a part of the path 'E:\Builds\1040\TailsPin Toys\TailsPinToysBuild\src\SourceCode\Dev & Release\TailsPinToysBuild\MW\InterfaceIntegration\TailsPinToys.Interface.Services\TailsPinToys.Interface.Services.sln.Release.vsprops'.
C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\TeamBuild\Microsoft.TeamFoundation.Build.targets (1146): Could not write lines to file "E:\Builds\1040\TailsPin Toys\TailsPinToysBuild\src\SourceCode\Dev & Release\TailsPinToysBuild\Services\TailsPinToys.Service.sln.Release.vsprops". Could not find a part of the path 'E:\Builds\1040\TailsPin Toys\TailsPinToysBuild\src\SourceCode\Dev & Release\TailsPinToysBuild\Services\TailsPinToys.Service.sln.Release.vsprops'.
C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\TeamBuild\Microsoft.TeamFoundation.Build.targets (1162): The project file "E:\Builds\1040\TailsPin Toys\TailsPinToysBuild\src\SourceCode\Dev & Release\TailsPinToysBuild\Presentation\TailsPinToys.Presentation.sln" was not found.
C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\TeamBuild\Microsoft.TeamFoundation.Build.targets (1745): TF42097: A work item could not be saved due to a field error. The following fields have incorrect values: Field: 'PhaseDetected' Value: ''
1 projects/solutions compiled
No Test Results
No Code Coverage Results
Other Errors and Warnings
1 error(s), 0 warning(s)
Exception Message: TF270015: 'MSBuild.exe' returned an unexpected exit code. Expected '0'; actual '1'. See the build logs for more details. (type UnexpectedExitCodeException)Exception Stack Trace: at System.Activities.Statements.Throw.Execute(CodeActivityContext context) at System.Activities.CodeActivity.InternalExecute(ActivityInstance instance, ActivityExecutor executor, BookmarkManager bookmarkManager) at System.Activities.Runtime.ActivityExecutor.ExecuteActivityWorkItem.ExecuteBody(ActivityExecutor executor, BookmarkManager bookmarkManager, Location resultLocation)
Solution for above errors
- Restarted the build agents.
- Create the new build definition.
- Clear the TFS cache form the client machine ” C:\Users\ %user%\AppData\Local\Microsoft\Team Foundation\5.0\Cache”
- Clean the Build Directory Path in the build server.
If all the above process is not worked do the below step and check..
- Changed the local workspace for that branchs or Team Project.
0 comments:
Post a Comment