How to : Deploy Solution Package (.wsp file) to Sharepoint 2010
Skenario :
I. Buat WebPart menggunakan Visual Studio 2010 di Server Development (Deploy otomatis ke Sharepoint di Dev) — Saya anggap semuanya sudah bisa ini semuanya
II. Deploy solution package ( .wsp file) dari Webpart yang sudah dibuat di Dev ke Server Sharepoint 2010 ke Production
Langkah-langkah :
1. Tambahkan Solution Package ke Server
- Buka Powershell atau Sharepoint 2010 Management Shell
- Ketik :
stsadm.exe -o addsolution -filename “C:\NamaFolderProject\bin\debug\ContohSolutionPackage.wsp”
2. Deploy Solution menggunakan Central Administration
- Buka Sharepoint 2010 Central Administration –> System Setting –> Manage Farm Solutions
- Cara nama File ContohSolutionPackage.wsp , disitu akan terlihat bahwa status Not Deployed
- Klik file tersebut –> Deploy Solution
- Pada combobox “Choose a Web Application to Deploy this Solution” pilih salah satu dimana kamu akan mendeploy, klik OK.
- Status file akan berubah menjadi Deployed.
3. Test WebPart
- Buka website Sharepoint –> Site Actions –> Edit Page –> Add a Web Part –> pilih kategori Custom –> Pilih Web Part yg telah dibuat –> Add.
Tutorial lengkap ada di :
http://dotnet.sys-con.com/node/1208275


No trackbacks yet.