Welcome to K2 Underground Sign In | Join | Help

Writing K2 Wizard Projects in VS2008

Recently I have found a requirement to build a new Wizard for a client, in order to allow business analysts to build processes whilst also meeting the specific technical requirements of the project.

One of the drawbacks of building a custom wizard is that in VS2005 the wpf designer was only ever released as a CTP, making the development experience much trickier than it needs to be. A much better experience would be had if we could build the wizard project in VS2008, but blackpearl does not yet support 2008, so we’re a bit stuck.

Actually no - If we create a new Wizard Project in VS2005, it will generate 2 projects, both of which are of type .csproj. Therefore we can upgrade them into VS2008 without any detrimental side effects.....in theory!

In order to test the theory I downloaded the GotoActivity wizard project from blackmarket, since I do not yet have a working wizard of my own!

Open Wizard Project in VS2008 

Opening VS2008 and opening the GotoActivity solution will activate the upgrade wizard.

Project Conversion Wizard Welcome Screen 

I do not require a backup since I have the Zipped up source anyway

 Backup before Conversion

Finish will perform the upgrade

 Complete Conversion

Upgrade completes without any errors, so good so far.... checking the project properties, we can see that the projects still target the .Net 3.0 framework.

Run the installer, this will also compile the source code

Install the Wizard

You can now close VS2008, and open any K2 workflow project, once opened simply reset the toolbox, and you will then see the wizard appear.

Reset ToolboxToolbox after reset

NOTE: I have not yet tested this using a newly created Wizard Project, although that is my intention.  

Published Wednesday, August 20, 2008 12:58 PM by Mike_H

Comments

No Comments

Anonymous comments are disabled