The Visual Studio tools for EPiServer on Visual Studio 2008

by: Fredrik Tjärnberg

We have a product backlog item about making our Visual Studio tools for EPiServer CMS 5 support VS 2008. The goal is to provide the same functionality for developing EPiServer projects in VS 2008 as we support in VS 2005. In the mean time, what can be done to move into VS 2008 and still use at least some of the functionality of the VS tools for EPiServer that exist today? Well actually, there are a few tricks you can perform on your own to move the existing support into VS 2008.

Here's what you can do:

In order to get the project template wizard (the one that lets you create an EPiServer project) you simply copy the EPiServerProject.zip found in
"%ProgramFiles%\Microsoft Visual Studio 8\Common7\IDE\ProjectTemplates\CSharp\EPiServer"
to community template path for project templates found in
"%USERPROFILE%\Documents\Visual Studio 2008\Templates\ProjectTemplates\Visual C#".

The Item templates (the ones that show up when you select add new in your project) can be copied from
%ProgramFiles%\Microsoft Visual Studio 8\Common7\IDE\ItemTemplates\CSharp\EPiServer
into the community template path for item templates located in
%USERPROFILE%\Documents\Visual Studio 2008\Templates\ItemTemplates\Visual C#.

After doing the copying you will find that the "New Project" dialog contains an "EPiServer Project 5.1.422.122" item.

image

... and after creating a project you can start adding items to your project and the "Add New Item" dialog will look something like this.

image

Next thing you want to do is to add the intellisense support for the web.config file. For this you need to copy EPiServer.xsd from
%ProgramFiles% Files\Microsoft Visual Studio 8\Xml\Schemas
to
%ProgramFiles%\Microsoft Visual Studio 9.0\Xml\Schemas

Now you'll have full intellisense when modifying the EPiServer specific parts of web.config.

image

To complete the environment we would like to populate the VS toolbox with the EPiServer web controls. However, this is a non trivial task that will require a windows installer package or possibly a VS package implementation to do so for this you will have to wait for our full VS 2008 support.

Now, it's time for you to explore what VS 2008, .NET3.5 and C# 3.0 can do for your EPiServer development!

27 February 2008


Comments

  1. Great post, Fredrik. I'm definetly going to tune my VS2008 with the templates - sure beats creating new projects in 2005 and upgrading them all the time. Actually, the only thing I had figured out myself was to add the EPiServer controls to the toolbox, by right-clicking on the toolbox, first adding an EPiServer tab and secondly using the "Choose Items" options to import the controls from EPiServer.Web.WebControls.dll. That seems to work, but there might be a downside I'm not aware of.
  2. Excelent!

    Works like a charm. /Fredrik

  3. Allan, you're of course right. I didn't think of the GUI solution :D . One thing you should consider though is to browse the EPiServer.Web.WebControls.dll that resides in %PROGRAMFILES%\EPiServer\5.1.422.122\bin when customizing the toolbox. .f
  4. Looking forward to testing it! Just got to get our TFS 2008 server up and running first... :/
  5. Tried your solution and it worked fine, except for the toolbox part. I added a tab, selected the control items to show and got nothing. The tab was just empty. So I resterted VS and lost my tab completely. Tried recreating a tab with the same name and got a message that the tab allready existed. Any ideas?
  6. If you don't have VS 2005 installed, like me after a system reinstall. You can extract the files using a nice program called LessMSIerables. http://blogs.pingpoet.com/overflow/archive/2005/06/02/2449.aspx
  7. Doesn't work for me, I keep getting the error: 'this template attempted to load an untrusted component 'EPiServer.VsIntegration, Version=5.1.422.256...' when tring to use the EpiServer project template, can't add this assemble to the GAC cache either (Using VS 2008 without having previous 2005 install) Any ideas?
  8. Doesn't work for me, I keep getting the error: 'this template attempted to load an untrusted component 'EPiServer.VsIntegration, Version=5.1.422.256...' when tring to use the EpiServer project template, can't add this assemble to the GAC cache either (Using VS 2008 without having previous 2005 install) Any ideas?
Post a comment    
User verification Image for user verification  
Fredrik Tjärnberg

About me

Developer and Team Lead for the backend development team with an unnatural interest in developer tools such as Visual Studio and MSBuild and Team Foundation Server.


Syndications


Archive


Tag cloud

EPiTrace logger