Skip to content

vsix command deploy webresource

PhuocLe edited this page Jun 20, 2026 · 2 revisions

Deploy WebResource deploys the selected local file to an existing Dataverse web resource, then publishes that web resource.

Command Source

Field Value
Command class CommandWebResource
Command id CommandDeployWebResource
Default menu text Deploy WebResource
TypeScript debug menu text Deploy WebResource (Debug)

When It Appears

The command is visible when the selected item has a supported web resource extension. For .ts files, generated files such as .form.ts and .webapi.ts are excluded; only deployable TypeScript files are shown.

The command is available from code editor context menus and from the DynamicsCrm.DevKit submenu in Solution Explorer.

What It Does

  1. Saves the current document.
  2. Opens or reuses a Dataverse connection.
  3. If the selected file is TypeScript, builds it in Debug mode and deploys the generated JavaScript file.
  4. Looks up the local file mapping in the DevKit cache/config.
  5. If no mapping exists, opens the Mapping WebResource dialog.
  6. Saves the mapping to DynamicsCrm.DevKit.Config.json.
  7. Uploads the file content to the selected Dataverse web resource.
  8. Publishes the web resource.

Notes

Use this command when the Dataverse web resource already exists. To create a new Dataverse web resource from the selected file, use Deploy New WebResource.

Clone this wiki locally