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

Configuring the install code

Next we want to add the components used to deploy the feature. This is fairly simple considering you simply perform various copy processes. If you open and review the Install.cmd file, you will see it probably looks very much like many other post-build deploy processes you have probably configured in the course of ASP.NET development. In fact, if you are beginning to think that SharePoint is decidedly ASP.NET-development-like, you would be correct. Although SharePoint is a decidedly advanced development platform, after you get past various new oddities of learning, you will find that any previous ASP.NET development work you have done will probably be used more than you may have guessed.

The first part of the Install.cmd file sets various obvious parameters. Next comes some gacutil and xcopy commands where you will see that your previous work in setting up a file structure is quite helpful. Only toward the end of this command file does it begin to deviate from any other ASP.NET project by running the STSADM tool to perform the SharePoint install process.

Note, if you want to run this command file each time you compile, simply place the following two lines, on separate lines, in the Post-build event command line box in the solution settings: “cd $(ProjectDir)” and “install.cmd.” On the other hand, if you compile a lot you may not want this running each time, in which case simply opening the command prompt and typing “cd /d C:\Code\SharePoint\Features\DeployHelloWorld” followed by running the command file will do the trick.

View Entire Article

User Comments

Title: asdf   
Name: asdf
Date: 2012-05-25 12:27:32 PM
more damn pics dude
Title: Create Custom SharePoint Features, it is simple.   
Name: sara
Date: 2009-10-01 2:01:37 AM
Nice !!!!!!!!
Try this too,

Product Spotlight
Product Spotlight 

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

©Copyright 1998-2024  |  Page Processed at 2024-07-23 4:13:04 PM  AspAlliance Recent Articles RSS Feed
About ASPAlliance | Newsgroups | Advertise | Authors | Email Lists | Feedback | Link To Us | Privacy | Search