开发者

Minimum development environment for sharepoint 2007 webparts

开发者 https://www.devze.com 2023-01-25 03:29 出处:网络
I know there are already a couple of questions out there about sharepoint development environments, but I was wondering if there\'s a shortcut if all I want to do is develop a relatively simple webpar

I know there are already a couple of questions out there about sharepoint development environments, but I was wondering if there's a shortcut if all I want to do is develop a relatively simple webpart. Do I still have to create a virtual machine with windows server, install sharepoint, sql server, wss etc., etc. or is there some easy way to get开发者_开发问答 up and running more quickly?

In short, what's the absolute minimum environment I need to develop a webpart for sharepoint 2007?


Unless you are willing to put up with some serious drawbacks (like not being able to debug your web part) you will have to build a virtual machine with windows server.

The minimum development environment is : -Windows Server + SharePoint (WSS or MOSS) + Visual Studio

SQL Express will be installed with Visual Studio.

It does take time to setup your first virtual machine, but once you have it you can back it up and use it for every new project. While you could probably develop a web part on your own machine by copying a bunch of DLLs and hacking something up, it would almost definitely not be worth it. Being able to debug and to deploy fast will make your development way faster.

Even if you don't need it, I still recommend that you install WSPBuilder as part of your minimal environment. Takes 2 minutes to install and it will save you hours.


If you can run a virtual machine with 2GB, you should be fine for web part development. I say virtual machine because I doubt you'll want to run windows server on your desktop.

Also, remember that your web parts can use the ASP.NET WebPart object and you can develop that on whatever environment you wish. If you abstract out your code enough you should be able to save SP object model code until the last possible step which would cut down your time on an actual SP environment.


The absolute minimum is ASP.NET 2.0, a text editor, a compiler, and makecab.exe.

SharePoint web parts inherit from System.Web.UI.WebControls.WebParts.WebPart, so as long as you don't need to access the SharePoint API, you can create the class and associated XML files using any configuration that has the .NET runtime.

However, you'll probably want to use Visual Studio. Many recommend WSPBuilder, but I use a customized version of STSDEV that will work on my Windows XP laptop. Visual Studio helps with the writing of the code, while WSPBuilder or STSDEV help with the creation of the supporting XML files and the WSP solution package file.

If you need to use the SharePoint API, you can copy the necessary DLLs from a server with SharePoint installed. Place the DLLs locally and then add them to your project references.

You will not be able to debug the web part if it calls the SharePoint API. Personally, I'd rather be able to use my computer than having debugging. In place of debugging, I use logging. While developing, I create an Announcements list named Log and write anything I want logged into that list.


The Environment you need to have for developing simple web part is:

Visual studio with WSP Builder add on.

Develop The webpart and build it. When you build the webpart you get the webpartname.wsp.

Take this file to the machine where you have the Sharepoint installed and you can Deploy it using sstadm.

If anyone wants detailed info, please let me know. Hari Gillala

0

精彩评论

暂无评论...
验证码 换一张
取 消