Demonstrates how to create a workspace in Visual Studio Code that contains two sub-projects, an Adobe AIR application project and a SWC library project. The AIR app project requires the SWC library project as a dependency.
The workspace includes default build task that compiles the library and then the AIR app. There is also a launch configuration that can run the AIR app in the AIR SDK's debug simulator.
-
Clone the repository. Then, in Visual Studio Code, go to the File menu and choose Open Folder…. Select the root directory of this repository. Do not add the App and Library folders as separate workspace root folders. This workspace is configured with a single root folder that contains two sub-projects.
-
The .vscode/tasks.json file uses the
dependsOn
field to require that Library/asconfig.json is built before App/asconfig.json. -
The .vscode/launch.json file uses the
asconfigPath
field to specify that App/asconfig.json is the project file to use for debugging. -
When you first open the workspace, you may see the following error:
unable to open 'Library/bin/Library.swc'.
This is because Library.swc has not been built yet. To resolve this error, go to the Terminal menu and choose Run Build Task…. Then, restart Visual Studio Code.