The Visual Studio extensions for SharePoint (VSeWSS) provide project templates for developers using Visual Studio 2008 to create, debug, package and deploy SharePoint projects including Web Parts, Data Lists, Content Types, Event Receivers, Templates, Modules and other SharePoint artifacts.
Here’s a short list of new features, for the details check out the SharePoint Team Blog. The v1.3 release is an incremental release of the VSeWSS including top feature requests. Get it here.
- Can be installed on x64 Server OS machines running SharePoint x64. Previously only x86 Server OS could be used.
- Separate build commands for package, deploy and retract are added
- Command line build, package and retract commands are included enabling continuous integration and build servers. Previously command line build of SharePoint projects was very difficult
- Refactoring support for renaming of Web Parts. Previously renaming a web part required changes in several files in the project
- WSP View improvements for consistency of deleting feature elements, merging features and adding event receivers to features
- Solution Generator can now generate solutions from publishing sites. Previously only regular sites could be generated
- Allowing partial trust BIN deployments of web parts. CAS configuration must still be provided by the developer.
- New project item template for SharePoint RootFiles items
- Deployment will now optionally remove conflicting existing features on the development server prior to redeployment. Previously any feature name conflicts would result in an error
- Ancillary assemblies such as for business logic can now be added to the SharePoint Solution WSP
- Hidden features related to Site Definition projects are now shown in WSP View. They are no longer hidden
- For advanced users a fast deploy is included to update only the compiled assembly on the SharePoint development installation
- The User Guide is now installed with the extensions instead of being a separate download
After I installed VS2010 SP1, I am now missing the SharePoint 2010 project templates. Slightly annoying to open projects that used to work fine and seeing this:
The project type is not supported by this installation.
Solution is relatively simple, rebuild the project and item caches in Visual Studio, wish they had this option in the menu system or at least a little more intuitive, but it is what it is
You can try the steps below to reset VS templates:
- Open Windows Explorer, and navigate to C:\Program Files \Microsoft Visual Studio 10.0\Common7\IDE
- Delete the ItemTemplatesCache, ProjectTemplatesCache folder
- Open Visual Studio Command Prompt (2010) with Administrator privilege: right-click the program -> Run as administrator
- Run devenv /InstallVSTemplates
- Registers project or item templates that are located in <Visual Studio installation path>\Common7\IDE\ProjectTemplates\ or <Visual Studio installation path>\Common7\IDE\ItemTemplates\ so that they can be accessed through the New Project and Add New Item dialog boxes.
- Run devenv /Setup
- Forces Visual Studio to merge the resource metadata that describes menus, toolbars, and command groups, from all available VSPackages.
If you are still unable to open the project:
You can download and install VS 2010 SDK (or VS 2010 SP1 SDK) which contains new project templates such as Item Template template and Project Template template
Visual Studio 2010 SP1 SDK: http://www.microsoft.com/download/en/details.aspx?id=21835
Visual Studio 2010 SDK: http://www.microsoft.com/download/en/details.aspx?id=2680
One of the new features that comes with Visual Studio 2005 is Code Snippets is the ability to create code snippets, small blocks of code that are easily reusable as you develop. Think of it as the developer’s cook book. Creating your own code snippets is quite easy, there’s even a code snippet for doing that.
You can use code snippets to type a short alias, and then expand it into a common programming construct. For example, the for code snippet creates an empty for loop. Some code snippets are surround-with code snippets, which enable you to select lines of code, then choose a code snippet which will incorporate the selected lines of code. For example, selecting lines of code then activating the for code snippet creates a for loop with those lines of code inside the loop block. Code snippets can make writing program code quicker, easier, and more reliable.
Some of the code snippets have logic built-in, for example the constructor code snippet: it knows the name of the class for which you’d like to generate a constructor. If you would like to create your own code snippets with more advanced functionality you have to take a look at the Function element in the Literal element of the code snippet.
There is a gallery of free code snippets: http://www.gotcodesnippets.com/
More information about code snippets found here.