I keep forgetting how to do this, and have to do so every time I want to create a new SharePoint workflow.
- Open Visual Studio.
- Right click on toolbars and ‘Customize’
- Click ‘Commands’ Tab.
- Click on the ‘Tools’ category.
- Add the ‘Code Snippets Manager’.
- Add ‘C:Program FilesMicrosoft Visual Studio 8Xml1033SnippetsSharePoint Server Workflow’ to your snippets
- It should be straight forward from there…
Comments from my old blog:
Are you using your own project templates? I’m curious because using the MOSS Workflow Project templates (both state machine and sequential)–the templates that come with the MOSS SDK–and I have the snippets already available to me.
Anyway, just throwing that out there.
Nope, these are the ones out of the SDK. I’m not clear why, but in some VMs that I use the snippets aren’t immediately available after I install it. And normally the ‘Code Snippets Manager’ is already available too – but not always. I haven’t figured out what factor causes these things to occur
But yes Peter, you’re right – normally they should be available.