Use the following steps if you want to build and publish a single target in your project that may or may not be designated as your primary target.
- (Optional) If you plan to use the publishing destination feature to automatically copy your generated output files to a specific location, make sure you have already created the destination file and associated it with your target.
See Creating Publishing Destinations and Associating Publishing Destinations with Targets.
- Do one of the following, depending on the part of the user interface you are using:
- Ribbon Select the Project ribbon. In the Build section, select Build Primary > Build [name of target] (to build only) or Publish Primary > Publish [name of target] (to publish a target that has already been generated).
- Local Toolbar Open the target. In the local toolbar of the Target Editor click (to build only) or (to publish a target that has already been generated).
- Right-Click In the Project Organizer, expand the Targets folder, right-click on a target, and from the context menu select Build [name of target] (to build only) or Publish [name of target] (to publish a target that has already been generated).
Note: If you choose to publish a target that does not have generated output (or it is out of date), Flare will let you know and ask if you want to build it first. If you select Yes, Flare will build the target and then immediately publish the output files.
- (Optional) A row is added to the Builds window pane, showing the progress of the target as it is generated and/or published. If the target generates or publishes successfully, the color of the Progress column changes from light to dark green, the Status column displays "Finished," and the State column displays "Publish Complete" (if you published). You can then double-click that row or select it and click View Output.
- (Optional) The log file is generated and saved automatically at the location you specified on the Build tab of the Options dialog (File > Options). The default location is the root level of the output folder for that target. You can tell if errors or warnings have occurred by looking at the appropriate columns in the Builds window pane. You can then select that row and in the local toolbar click Open Build Log.
See Opening Build Logs.
Note: You can also select the target row in the Builds window pane and click Rebuild Target to generate the output again.
Note: As an alternative to using Flare's publishing destination feature, you can click on a generated row in the Builds window pane and select Open Output Folder. Then navigate to the target folder and copy the output files wherever you need them.
Note: If you have added linked projects to your target to create multilingual output, Flare will build each project in the order you specified in the Target Editor. See How to Select Languages for a Specific Target.
Warning: If your computer's anti-virus (AV) software scans the Output folder during the build process and you experience one or more "Build Failed" errors, the AV software may be preventing the build process from accessing the output files. To avoid this, you can temporarily turn off or disable your AV scan. You may also be able to exclude the Output folder, add Flare to an exceptions list, or postpone/reschedule scans to a different time. See your AV vendor for information.