Scripting with Visual Studio

This topic describes how to build and run DevWeb scripts using the Microsoft Visual Studio IDE.

Create external tools

When scripting with Visual Studio, you can create external tools that contain tasks to run DevWeb scripts. You need only do this once, and then you can use the tools for all your DevWeb scripts.

The following example describes how to create two external tools:

  • DevWeb Single Run
  • DevWeb Load

To create an external tool to run DevWeb scripts:

  1. In Visual Studio, select Tools > External Tools.
  2. In the displayed External Tools dialog box, click Add.
  3. Fill in the dialog box fields for each tool you create, as appropriate, using the tables below.
  4. Select the check box for Use Output window.
  5. Click OK.

  6. After creating the external tool, it should be available to run from the Tools menu.

Field values to create the tools:

Field name Value
Title DevWeb Single Run
Command

%DEVWEB_PATH%/DevWeb.exe (if you do not have the DEVWEB_PATH environment variable defined, use the full path)

Arguments -ide=vs $(ProjectDir)
Initial directory $(ProjectDir)

 

Field name Value
Title DevWeb Load
Command

%DEVWEB_PATH%/DevWeb.exe (if you do not have the DEVWEB_PATH environment variable defined, use the full path)

Arguments -mode=load -ide=vs $(ProjectDir)
Initial directory $(ProjectDir)

Back to top

See also: