SharePoint Workflow Development Drip (3)

Source: Internet
Author: User
Tags visual studio

You often switch to other windows when developing workflows using templates in ECM Starter kit BETA2, such as generating class files for InfoPath form templates, installing workflows, and so on.

Can you integrate all of this work into the Visual Studio.NET?? Yes, it's easy to do with the external tools features of the vs.net.

Method

Clicking on an external tool under the Tools menu will pop up a very easy to understand external Tools dialog box where you can add, delete, modify, and sort the external tools.

Here's how to make the development workflow easier with external tools.

Generate GUID

When configuring Feature.xml and workflow.xml, you need to configure different GUIDs for these two files, vs.net a gadget that generates GUIDs Guidgen and adds it to the external tool by default. If you find that you don't have this external tool, open the External Tools dialog box and fill in the following information:

Title Generate GUID
Command C:\Program Files\Microsoft Visual Studio 8\common7\tools\guidgen.exe
Initial directory C:\Program Files\Microsoft Visual Studio 8\common7\tools\

* If you're like me again if you don't find GUIDGEN.exe in the initial directory, you can download it at Microsoft's Download Center (why am I so unlucky?).

To generate a form template class file

If you use an InfoPath form template in your workflow and you need to generate class files for this form template (for example, to get the values in the associated form), you can add an external tool like this:

Title To generate a form template class file
Command C:\Program Files\Microsoft Visual Studio 8\sdk\v2.0\bin\xsd.exe
Parameters "\myschema.xsd"/c/o:$ (ProjectDir)
Initial directory $ (ProjectDir)
Using the Output Window
Prompt for input parameters

When used, a dialog box pops up, filling the "\" of the parameter bar with a directory path that contains the template schema file (. xsd).

such as: "C:\tempdir\myschema.xsd"/c/o:$ (ProjectDir)

(where bold is the directory path that you added)

Install Workflow

Title Install Workflow
Command $ (ProjectDir) Install.bat
Initial directory $ (ProjectDir)
Using the Output Window

Once you have configured the Install.bat file, call this external tool directly to complete the installation, and you can view progress information in the Output window.

The external tools also have a lot of helpful applications to see if you can figure it out.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.