-
Notifications
You must be signed in to change notification settings - Fork 16
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.
| Field | Value |
|---|---|
| Command class | CommandNewWebResource |
| Command id | CommandDeployNewWebResource |
| Default menu text | Deploy New WebResource |
| TypeScript debug menu text | Deploy New WebResource (Debug) |
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.
- Saves the current document.
- Opens or reuses a Dataverse connection.
- Loads Dataverse solutions.
- If the selected file is TypeScript, builds it in Debug mode and deploys the generated JavaScript file.
- Opens the New WebResource dialog.
- Creates the new Dataverse web resource.
- Adds it to the selected solution.
- Publishes the web resource.
- Saves the mapping to
DynamicsCrm.DevKit.Config.json.
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.