Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Sharepoint 2010 how to add a wsp webpart

We have got a Sharepoint project at school, we need to include some webparts like weather on a site; the point is that for importing webparts SP asks me for .dwp or .webpart files while I can only find .wsp . Where should I look for .webpart files ? Or how to import .wsp ? Thanks a lot

like image 311
Rayjax Avatar asked Dec 09 '25 16:12

Rayjax


1 Answers

I always use the sharepoint management shell. Move your .wsp file to an easy location. Open your management shell as an administrator and use this command:

add-spsolution c:\yourwsp.wsp

Open sharepoint central administration and manage farm solutions. Deploy your webpart (System Settings - > Manage Farm Solutions) and then activate your webparts feature (Go to your desired web application Site Actions - > Site Settings - > Site Collection Features).

Edit: When you are re-deploying a .wsp, make sure you go to your farm solutions and retract / remove your .wsp first.

like image 160
Kenny Thompson Avatar answered Dec 12 '25 10:12

Kenny Thompson



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!