Posted by admin on 13th July 2008

Part 1 – Creating the SharePoint project

This is the first part in a series of walkthroughs specially written for developers beginning SharePoint development. I’m also a beginner and after a few weeks of reading books, blogs and watching countless screen-casts I’ve finally got to that point where I’m familiar with the fundamental elements and environment of SharePoint development.
 
Part 1 is only the beginning and should be a walk in the park for everybody. We will set up our Visual Studio project and deploy a simple-do-nothing feature to SharePoint. I encourage you to follow this walk-through shouldn’t take more than 10 minutes or so.
 
If you are not familiar with STSDEV I would recommend that you go to the introduction of these series and read up on some prerequisites.

Lets begin

  • Open up Visual Studio 2008
  • Click Tools › STSDEV
  • Insert the Solution NameSG.SharePoint” (or something you prefer)
  • Choose your Parent Directory “C:\Demo”
  • Create a new Signing Key“C:\Demo\DemoKey.snk
  • Choose Simple Feature Solution as your Solution Type
  • Choose Visual Studio 2008 .Net 3.0 as your project version type
  • Click the Create Solution button

  • Choose Site Collection from the Feature Scope dialog box

 

Customise the project

Now you have created the SharePoint project that we are going to work with in these series of walk-troughs. We are only going to customise it a little bit for now.

  • Go to File › Open › Project/Solution… and open the project you created above.
  • You are presented with a security warning but don’t worry just choose “Load project normally” and click OK

  • No we have our project open and we are just going to change a couple of parameters and then test our solution
  • Open up RootFiles\TEMPLATE\FEATURES\SG.SharePoint\feature.xml

       

  • Change the Title and Description attribute to what you prefer.

Simple Feature ready

As I mentioned in the beginning of this part that we are only going to make the simplest feature possible. Just to make sure that everything builds and deploys correctly to begin with.

  • In the Solution Configuration drop-down list select DebugDeploy and build your project CTRL+SHIFT+B. (I prefer to do a Rebuild cause sometimes my solution doesn’t build)

  • You can watch the build progress in the output window

  • When the build has completed fire up a browser and browse to the SharePoint server
  • Click on Site Actions › Site Settings
  • Choose Site Collection Features from the Site Collection Administration section
  • Now you should be able to see your new feature.

Conclusion

We have now created a basic SharePoint project that we are going to use and build upon in future parts of this series.

That’s it for this part. Stick around for the next part as we are going to take it a step further and prepare our project for some advanced features, like Workflows and integrate our custom .aspx pages with code-behind.

    1 Response

  1. [...] – bookmarked by 5 members originally found by billalex on 2008-09-13 Part 1 – Creating the SharePoint project http://sigurbjorn.wordpress.com/?p=5 – bookmarked by 1 members originally found by nagyv on [...]

Post your comments