After you have created, edited, or validated your Mobile Development Kit app, you must bundle the app metadata to be interpreted correctly by the Mobile Development Kit client app at runtime.
If your client retrieved metadata via mobile services App Update, use the deploy option to deploy your application.
Output of the bundling process is intended to either copy to an existing local client or generate the UploadBundle.zip for manual deployment to mobile services.
These options (
MDK: Bundle to App root,
MDK: Create Upload Bundle Zip) are configured in the
User Settings. If neither of the option is specified, the resulting bundle will be created in temp folder.
App Root can alternately be specified in the
- Launch Visual Studio Code and open an Mobile Development Kit application folder or a Git repository folder containing multiple Mobile Development Kit applications.
Bundling process gets triggered automatically every time a change is saved.
If auto-bundling is enabled, you can turn it off by choosing Code Preferences Settings and deselecting the
MDK: Auto Bundleoption in the User Settings window.
You can manually trigger the bundling process at any time on any Mobile Development Kit file.
Run Build Task.
- Select the Mobile Development Kit Bundle Build with the name that matches your base application's name and path.
Triggering the bundle process enables validation of the app by default. If there are errors during the validation, you can see them in the
You can turn off this default metadata validation behavior by selecting
"mdk.validateBeforeBundle": falsein the User Settings window.
By default, the bundling process doesn’t stop even if there are errors found during the metadata validation.
You can change this behavior by choosing
MDK: Stop Bundle On Validation Erroroption in the User Settings window.
Your metadata has now been bundled and copied to the Mobile Development Kit client.