Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

I am using silverlight project in sharepoint 2010.I have an requirement of using WSP builder project only for building the soultion and I have configured the layout structure as shown below.

enter image description here

In the dev machine I have configured post build event command in the project properties tab xcopy Sample.xap "C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\TEMPLATE\LAYOUTS\ClientBin\" /Y

So whenever I build the silverlight project automatically the sample.xap file will be moved to the 14 hive client bin but when I build WSP for the project using wsp builder the clientbin folder is not available in it. But when I right click the clientbin folder in visual studio solution the sample.xap file is present but inside the wsp it is not there ?

So could you provide a solution for automate or move the xap file to 14 hive clientbin folder at the time of deploying the wsp in the testing server ?

share|improve this question
add comment

1 Answer 1

up vote 2 down vote accepted

You should configure silverlight project to move file to ../Layouts/ClientBin of your WSP Builder project, when WSP Builder creates a package it will pack it correctly.

This can help you understand the approach in details with UserControls, the same will be for xap files - http://www.greggalipeau.com/2009/05/18/developing-sharepoint-webparts-using-user-controls-and-web-applications/

share|improve this answer
    
Thanks for your reply. –  Ramalingam Jan 25 '12 at 10:49
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.