Wednesday, February 13, 2008

Creating and Deploying Webparts to Sharepoint site using STSDEV tool

1.  Download stsdev tool from the Net.
   (do it in your system)
2.  Open Visual Studio 2005,  point to Tools menu, and then External Tools... 
      and add name of the tool  as stsdev and in the next tab, locate the stsdev.exe file and click ok.
3. Now click on the Tools->stsdev
4.  Give Solution Name, then select parent directory for ex, f:\framework\examples, and in the next 
     tab such as signing key, f:\framework\examples\sn.snk and select the solution type as web part      solution(C# Assembly) and click the create solution button.
5. Open the Project .sln file and all the files will be created by default. Open Customwebpart1.cs and Customwebpart2.cs and change the codings whatever the control you need to add.

(do it in sharepoint server)
6. Upload project to sharepoint server and open the .sln file. select debugbuild and click build, then
    debugdeploy and click build.
7. Now open a new site and point to site actions -> site settings page.
8. Under Galleries section, click webpart  and then click new, select the newly added webparts and upload it. so that new webparts is displayed.
9. Now you create a blank web part page and click on it. you are willing to add the newly added webpart


Reference Links:

No comments: