Developing and Deploying a SharePoint Feature - Part 1
page 3 of 8
by Steven Barden
Feedback
Average Rating: This article has not yet been rated.
Views (Total / Last 10 Days): 17660/ 270

Peeling back a layer

Now that we have the basic concept of a feature, let us build and deploy one that can be activated. You probably know by now that the base directory for SharePoint is C:\Program Files\Common Files\Microsoft Shared\web server extensions\12 on a standard SharePoint install. There are various names for this directory, and to make it easy for this article we will call it “12.” I use a small batch file in my path called “12.cmd” that has the following line: “@call start explorer "C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\12"” (without the outside quotes). This makes it very simple to type Start | Run | 12 | <Enter> to get into the 12 directory. As you look around at various directories and files you may notice that SharePoint is nothing if not open to use as a guide. Although I am sure you have also noticed that I did not say easy. None the less, it is there, and you will find as you progress in your learning that SharePoint development may not be especially well documented in all cases. Especially early in your development learning curve, I highly recommend that you locate an existing component that Microsoft has already constructed, and plagiarize it for your needs.

As you already know, deploying a feature is almost always required to get your code out to the SharePoint site and useful to the user. It is quite true that you can place certain files in a SharePoint environment and make them work, but in order to influence very powerful functionality, the act of deploying a feature is usually required.


View Entire Article

Article Feedback

Title:  
Name:  
Url: ( Optional )
Comment:  
Please add 8 and 7 and type the answer here:

User Comments

Title: Create Custom SharePoint Features, it is simple.   
Name: sara
Date: 10/1/2009 2:01:37 AM
Comment:
Nice !!!!!!!!
Try this too,

http://sarangasl.blogspot.com/2009/09/in-this-article-im-going-to-describe.html
Title: Configuring install code   
Name: Sohaib Khan
Date: 2/19/2009 1:45:46 AM
Comment:
Basically, I am doing this first time so i am not familiar with the syntax of PostBuildEvent.
Thanks in advance - Steven.
Title: Configuring install code   
Name: Sohaib Khan
Date: 2/19/2009 1:44:36 AM
Comment:
and this one as well
Call ($ProjectDir)\Import.cmd
Title: Configuring install code   
Name: Sohaib Khan
Date: 2/19/2009 1:41:42 AM
Comment:
I also tried this command
($ProjectDir)\Import.cmd
Title: Configuring the install code   
Name: Sohaib Khan
Date: 2/19/2009 1:39:30 AM
Comment:
I am trying this command
set CONFIGURATION=$(Configuration) && ($ProjectDir)\Import.cmd
Title: Configuring the Install Code   
Name: Sohaib Khan
Date: 2/19/2009 1:36:56 AM
Comment:
Hi Steve,

I've 2 files which are abc.wsp (Solution Package of SharePoint) and Import.cmd(stsadm commands). Now, for distribution, i am using VS Setup Project. In Setup Project, i want to execute cmd file automatically so i am using PostBuildEvent.
Title: Configuring the install code   
Name: Steven Barden
Date: 2/18/2009 9:15:08 PM
Comment:
Sohaib,

You will have to provide me with allot more details than that. Pretend I'm sending the same request for help to you, and reconsider how you would like things described.
Title: Configuring the install code   
Name: Sohaib Khan
Date: 2/18/2009 9:38:07 AM
Comment:
Hi,

I've included *.cmd file and *.wsp file in my setup project. Now, I want to run cmd file after completion of installation automatically. So, i am using PostEventBuilder. I also tried your command but i am getting error. Any hint please ......

Product Spotlight
Product Spotlight 






Community Advice: ASP | SQL | XML | Regular Expressions | Windows


©Copyright 1998-2009 ASPAlliance.com  |  Page Processed at 11/21/2009 5:58:02 PM  AspAlliance Recent Articles RSS Feed
About ASPAlliance | Newsgroups | Advertise | Authors | Email Lists | Feedback | Link To Us | Privacy | Search