To solve this problem, you can directly open the web project file XXX. csproj in a text editor, find the node silverlightapplicationlist, modify the value, and save it.
You can also refer:
Not including the xap file from the build, when it is a team build will indeed remove the error, but it is not a solution to the problem!
The question is: Why is the xap file not copied to the clientbin folder when running under teambuild.
The magic seems to happen in the webapplication project, because that one has a reference to the Silverlight application.
In my caseI had renamed the Silverlight project and the folder where it lived in .
So the solution is as follows:
Open vs, right-click the WEB Project and selectUnload Project , Next right-click the WEB Project again and selectEdit Xxx . Csproj .
Locate<Silverlightapplicationlist> Tag and edit the path and project name so they are correct again.
Save The file and Check-in The file into TFs.
Restart your build.