none
MSBuild error "No Silverlight project specified for Silverlight output" in Team Build

    Question

  • I have a web project with a Silverlight application referenced inside the same solution. We have a continuous build using MS TFS Team Build. Inside Visual Studio everything compiles fine. However, team build always finishes with error No Silverlight project specified for Silverlight output.


    Log file:

    Using "CopyFilesToFolders" task from assembly "C:\Program Files\MSBuild\Microsoft\VisualStudio\v10.0\WebApplications\Microsoft.WebApplication.Build.Tasks.dll".
    Task "CopyFilesToFolders"
      Copying Silverlight applications
      Copying C:\Documents and Settings\vstfs80service\Local Settings\Temp\SSC\check-in\Binaries\ReleaseSoftec\Mosty.SL.xap to C:\Documents and Settings\vstfs80service\Local Settings\Temp\SSC\check-in\Sources\WebSites\Portal\Mosty\ClientBin\Mosty.SL.xap
    MSBUILD : error : Copying file C:\Documents and Settings\vstfs80service\Local Settings\Temp\SSC\check-in\Binaries\ReleaseSoftec\Mosty.SL.xap failed. No Silverlight project specified for Silverlight output C:\Documents and Settings\vstfs80service\Local Settings\Temp\SSC\check-in\Binaries\ReleaseSoftec\Mosty.SL.xap. [C:\Documents and Settings\vstfs80service\Local Settings\Temp\SSC\check-in\Sources\WebSites\Portal\Mosty\Mosty.Web.csproj]
    Done executing task "CopyFilesToFolders" -- FAILED.
    Done building target "CopySilverlightApplications" in project "Mosty.Web.csproj" -- FAILED.
    

    Any help is really appreciated. 
    Tuesday, September 28, 2010 5:14 PM

Answers

  • ok right click on the Silverlight project that had this problem choose properties.->build->

    in output , output path brows to the debug or release for the aspx project that suppose to host your silverlight app

    Wednesday, September 29, 2010 11:39 AM

All replies

  • Thanks, Haitham, but I've already read that post. I don't have the XAP file in the TFS, it's always built by the MSBuild.

    Funny thing is that we have three Silverlight applications and three web application projects in the solution (one XAP per WAP), two of them have no problems but only one does not compile because of that error.

    Wednesday, September 29, 2010 3:15 AM
  • ok right click on the Silverlight project that had this problem choose properties.->build->

    in output , output path brows to the debug or release for the aspx project that suppose to host your silverlight app

    Wednesday, September 29, 2010 11:39 AM
  • What do you mean "debug or release?" If you mean the typical debug and release folders under /bin for library projects, or winform or console applications, web applications don't have them. Everything is under /bin root. Selecting /bin root versus the /bin of the silverlight app didn't change anything for my project.

    1. The .xap is not in source control.

    2. Both the web app and silverlight app have configuration profiles for each config.

    3. The silverlight app's output path is pointing to the web app's bin for all config profiles.

    There isn't much about this out there. What else could be the problem?

    Task "CopyFilesToFolders" (TaskId:735)
      Copying Silverlight applications (TaskId:735)
      Copying C:\Builds\38\####\Manual_dev_to_####-dev\Binaries\####.Silverlight.SceneStatus.xap to C:\Builds\38\####\Manual_dev_to_####-dev\Sources\private\frontend\####\src\####.MVC\ClientBin\####.Silverlight.SceneStatus.xap (TaskId:735)

    MSBUILD : error : Copying file C:\Builds\38\####\Manual_dev_to_####-dev\Binaries\####.Silverlight.SceneStatus.xap failed. No Silverlight project specified for Silverlight output C:\Builds\38\####\Manual_dev_to_####-dev\Binaries\####.Silverlight.SceneStatus.xap. [C:\Builds\38\####\Manual_dev_to_####-dev\Sources\private\frontend\####\src\####.MVC\####.MVC.csproj]

    Tuesday, August 09, 2011 10:42 AM