Project Export And Import

Today I want to show how you can export and import projects. It’s very easy and similar to what can be done in AX 2012.

Export

If you want to export a project of course first you need one – literally – in Solution Explorer. Right-click it and choose Export Project YourProjectName.

Export Project Dialog

In the Select Project Package File Name dialog you need to provide the path and name of the resulting project file. The file extension is .axpp. I hope the project’s name gets suggested as file name by default in future 🙂

 

Import

Importing a project is super-simple, too. In Visual Studio, click on Dynamics AX > Import Project… and pick the axpp file you want to import (File name). Also you need to define the Project file location. There’s two choices in the Settings area. If you check Overwrite Elements you won’t get prompted about overwrites of AX metadata or project files. Open project in let’s you decide if you want to use the Current solution, open the project in a New solution or do not put it in any solution (None). In the Details area you can expand the project and see the elements included. They’re selected by default but you can unselect node-wise to avoid the import of elements. This is similar to AX 2012, too.

Import Project Dialog

It’s important to note that the project doesn’t only come with the objects included but also carries the information about the layer and the package it belongs to. Especially the package part is interesting because you might import a project that was given to you by someone else – belonging to a package your environment doesn’t know at all. Good news is Visual Studio handles this and creates the missing package automatically and with correct references and everything!
I must confess I didn’t try importing a project in a package with a reference to another model that doesn’t exist in the adopting environment. Did you? Tell me 🙂

Leave a Comment