3

I have a silverlight application. When i build the application using VS 2013, it creates ClientBin folder under web project and copies all XAP files into clientbin folder as expected.

However our build process use MSBuild to build all the applications. We have custom .proj file which has bunch of tasks to build the applications. When i execute .proj file using Msbuild command it doesn't not create ClientBin folder

LP13
  • 30,567
  • 53
  • 217
  • 400
  • Can you mention the exact command you run along with the parameters? – bit Dec 23 '15 at 10:33
  • msbuild Main.proj /t:Clean;MyTarget1;MyTarget2;-p:Configuration=Release;DropLocation="C:\DropLocation";BuildNumber=999.99.1.1;VisualStudioVersion=12.0 – LP13 Jan 06 '16 at 20:47

1 Answers1

1

After checking around for problems similar to yours and looking at some of my silverlight projects I would suggest the following:

As you stated you are using a custom .proj file, you should check the custom .prog file and make sure this exists in a <PropertyGroup/>

<SilverlightApplicationList>{GUID}|..\Silverlight_Project_Folder\Silverlight_Project_Name.csproj|ClientBin|False</SilverlightApplicationList>

This value tells MSBuild to copy the XAP in the ClientBin directory.

Take note of the silverlight projects GUID. It can be obtained from the Silverlight app .csproj file:

<ProjectGuid>{00000000-0000-0000-0000-000000000000}</ProjectGuid>

There was also a mention of including the CopySilverlightApplications; task on the build server's Microsoft.WebApplications.targets

Hope this helps

References:

New Silverlight app doesn't generate XAP

How to get the Silverlight XAP copied to the clientbin on build

Silverlight xap file not being copied to ClientBin on Build Server

MSBuild SilverlightApplicationList

Community
  • 1
  • 1
Nkosi
  • 235,767
  • 35
  • 427
  • 472