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 have 1 Visual Studio Solution which contains 3 different Projects. 1 for EventReceiver and 2 for UI(WebParts) projects.

I want to create single Setup file for all sothat I can deploy it on any site.

I have installed SharePoint 2010 Solution Installer also.

How can I create the Solution using this ?

share|improve this question

1 Answer 1

Shahid,

For the Visual Web Parts, simply create a new folder inside your Solution Explorer and name it as per your Web Part name and then right click on folder and add Existing Item and select all the files of the Web Part, the folder will become a Visual Web Part kind of folder and you have then in single solution [single feature].

Step - 1
enter image description here

Step - 2
enter image description here

For Event Receiver, do the same - Make a new folder with the name of the Event Receiver and add Existing Item, select all files of Event Receiver:

Step - 1
enter image description here

Step - 2
enter image description here

Step - 3
enter image description here

After adding the web parts and event receiver in single solution, your feature file should look like:
enter image description here

share|improve this answer
    
Thanks Arsalan Adam Khatri :) –  Shahid Nov 12 '12 at 9:06
    
Shahid, please mark the answer as correct/accept if that helped you! –  Arsalan Adam Khatri Nov 12 '12 at 9:16

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.