Skip to content

vsix command deploy new webresource

PhuocLe edited this page Jun 20, 2026 · 2 revisions

Deploy New WebResource creates a new Dataverse web resource from the selected local file, adds it to a solution, publishes it, and saves the local mapping.

Command Source

Field Value
Command class CommandNewWebResource
Command id CommandDeployNewWebResource
Default menu text Deploy New WebResource
TypeScript debug menu text Deploy New 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 the DynamicsCrm.DevKit submenu in Solution Explorer and from relevant editor contexts.

What It Does

  1. Saves the current document.
  2. Opens or reuses a Dataverse connection.
  3. Loads Dataverse solutions.
  4. If the selected file is TypeScript, builds it in Debug mode and deploys the generated JavaScript file.
  5. Opens the New WebResource dialog.
  6. Creates the new Dataverse web resource.
  7. Adds it to the selected solution.
  8. Publishes the web resource.
  9. Saves the mapping to DynamicsCrm.DevKit.Config.json.

Notes

Use this command when the selected local file does not already have a Dataverse web resource. After the mapping is saved, future deploys can use Deploy WebResource.

Clone this wiki locally