An easy way is to simply add a new deployment project to an existing solution.
Right-click your solution and choose Add> New Project.

Go to the Other project types section, select the Smart Device CAB project.

Right-click the new project, including all the files that your project uses, then build it .
UPDATE:
Be sure to add the output of the project!

source share