Before you can use the package management features in Gordon you need to define your package feeds where you want Gordon to get the packages from. At the moment Gordon supports the following feed types
The configuration of feeds (as well as any other configuration) is shared across all of three Gordon clients. That is: Gordon UI, Gordon VS Code and Gordon PowerShell. Any change you make in one client, is automatically available in all others.
To configure package feeds directly in VS Code, you can go - from the Gordon icon - to the “Package Feeds” entry.
Click the + icon on the “Package Feeds” item to create a new feed.
This will create a new package feed and open it in the editor. The configuration is essentially a .json
file. The following properties are common to all feeds:
You can also delete a package feed by simply deleting the file. There is a shortcut action to do so by right-clicking the package feed and deleting it.
Gordon chooses the package feeds to use based on the server you are connecting to. This means that you can have one set of package feeds for a BC24 development environment and a different set of package feeds for a BC25 development environment.
Gordon VS Code does this by using your launch.config
to determine which target you are working with. This is essential, because the various package management related actions that are available in Gordon VS Code will be based on this concept.
To choose which feeds you want to use with wich server, you can go to list of servers in Gordon and using the Select Package Feeds action you can select one or more feeds to be used with this target.
This will open the list of all available package feeds and you can select one or more that you want to use with this target server / service.
Gordon VS Code has an action Restore Dependencies that you can use to install all the required dependencies of your current project to a given BC service or environment.
To execut this action you have two possibilities:
Gordon will now look at your app.json
and analyze all the dependencies that you have defined. It will then look at the service you selected and check which apps are installed and which are not.
The missing dependencies Gordon will then try to download and install to the service by looking them up on the package manager.
Gordon allows you to add or update dependencies to a project. Because Gordon always uses the target service to decide which package manager to use, you have access to the dependencies from below your launch configuration:
When you expand the Dependencies entry, you can see a list of all the dependencies currently in your project. You will also get an information if the given dependency is currently satisfied on the selected service and/or if there are updates to the given dependency available on the package manager.
app.json
with the selected version.After you are done modifying your dependencies, you can run Restore Dependencies to restore them to your service.
Was this page helpful?
Glad to hear it! Please tell us how we can improve.
Sorry to hear that. Please tell us how we can improve.