SharePoint Blog - René Hézser

Anmelden  RSS Feed RSS Feed
Startet die Suche

Archive

Kategorien

Links

Andere Blogs




ITaCS GmbH

Nov 212011

What to know about the feature folder

One of the first things I used to tell guys new to SharePoint development is: Never ever name the folder of your feature “Feature1”. If you create a solution with WSPBuilder, or did some time ago with VS 2008, you have to rename the folders immediately!

image

This is how a typical SharePoint project looks like, if you create features. I guess most of us have used the mighty WSPBuilder (http://wspbuilder.codeplex.com) for developing with SharePoint.image

After building the VS solution and creating a WSP package with WSPBuilder, the wsp contains two folders. They reflect the names, we defined in VS.

 

 

Now lets take a look at the same features in a Visual Studio 2010 SharePoint Solution.

image

It almost looks the same as a WSPBuilder solution in VS 2008.

The features have been created by right-clicking on the Features folder in the Solution Explorer. This is important.

In many places VS uses tokens to replace strings with certain solution specific values like the assembly name. You can take a look at the tokens here: Replaceable Parameters

If we look at the wsp again, we notice the difference. Visual Studio 2010 hasimage added the solution name as prefix to the feature folders. Great. Thank you Microsoft. Now we can name our feature folders e.g. after the scope. (Site, Web, Webapplication of Farm), and do not have to worry about duplicate names.

The magic of this can be seen, if we take a look at the properties of the feature folders.

image

Conclusion: VS 2010 is a great improvement to us SharePoint developers. We don’t have to know all the places where it helps, but it can’t hurt, either. I hope this article brings a little light to the magic Winking smile


Published: 11/21/2011  10:06 PM | 0  Comments | 0  Links to this post
Tagged as: Development, SharePoint, Visual Studio

May 072010
Apr 122010

Visual Studio 2010 with SharePoint 2010 Beta 2

A quick test shows that the just released Visual Studio 2010 works on my SP 2010 Beta 2 VM.

I could open a project, hit F5 to deploy it and debug successfully.


Published: 4/12/2010  10:59 PM | 0  Comments | 0  Links to this post
Tagged as: SharePoint, Visual Studio

Feb 092010

Visual Studio 2010 RC

I’ve just seen that the RC is available via MSDN.

Silverlight 4 is not supported in the RC it says in the notes. Have to try SharePoint Development against the Beta 2…


Published: 2/9/2010  8:41 AM | 0  Comments | 0  Links to this post
Tagged as: Visual Studio, Development