Tuesday, March 23, 2010

Doing SharePoint 2007 Development in Visual Studio 2010

I was recently asked if you could build SharePoint 2007 solutions in Visual Studio 2010. At the time of writing, Visual Studio 2010 is a Release Candidate and will launch in April. I’ve just installed the Release Candidate and I can tell you that there are two SharePoint 2007 project templates included:

  • Sequential Workflow
  • State Machine Workflow

There are no other out of the box 2007 project templates. Of course, there is a rich selection of SharePoint 2010 templates.

While it’s possible that Microsoft may add more SharePoint 2007 templates to the final product, I haven’t been able to find any mention of this in my searches. That doesn’t mean that you can’t use Visual Studio 2010 to create SharePoint 2007 solutions, just that right now you’d have to do a lot of leg work to make it happen.

Fingers crossed that we will see some community extensions (like WSPBuilder and STSDev on Visual Studio 2008) make it easier to use Visual Studio 2010 for SharePoint 2007 targets.

Update: after installing the released version of Visual Studio 2010 Premium, here are the templates that are available to me:

image

3 comments:

Brian Farnhill said...

WSPBuilder already has a version that works great in VS2010. Also I will be doing a presentation on exactly this topic for the Canberra Visual Studio Team System User Group in May as well, I'll try to record it and share it around :-)

Raul said...

Good evening, first of all, let me say that I’m a big fan of your blog.

Perhaps you can help me out with a Sharepoint problem. I'm trying to make a web site so that the end user selects a "province" from a drop down menu and depending on which "province" he selects, certain web parts would show/hide. Kind of like a region filter.

I've spent 3 days trying to wrap my head around this, and this is the route I’m taking..
Create a base class that inherits from Webpart which takes care of the province check and inherit all our other webparts from that. We can use WP connections.
http://msdn.microsoft.com/en-us/library/dd585662%28office.11%29.aspx

Since I'm going to need to do the same thing for lots of pages (meaning contact us would be different for different provinces). I should use generic Session var.

So in conclusion, our DropDownList control sets a session var when selected index changes, our web part base class overrides render and checks the value of that var against a value set in it to decide if it should show/hide.

Can you perhaps help me out with the code for the base class web part (and comparing the session var to a value in the web part)?
Thanks for your time and keep up the great blog.

Indian SharePoint Developers said...
This comment has been removed by a blog administrator.