Build a Domain Specific Language with DSL Tools - Generate the Code for the Designer and Build the solution (Page 6 of 6 ) - Because we have modified the domain model and notation, we must now regenerate code and build the solution in order to update the designer. First, there is one more file that needs to be added to the solution, which contains some required strings and icon resources used by the designer.
- In the Solution Explorer, right-click on the Diagram folder in the Designer project, and choose Add->Existing Item.
- In the File Name: box, type c:\dsl\BizEntityDesigner.Resource.resx. Click the Add button.
- Confirm that you want to replace the existing file.
- Now we are ready to generate code and build.
- Click on the Transform All Templates button in the toolbar (shown below circled in red). Note that this command may take a little while to complete.

- Now build the updated solution, by selecting the Build Solution command from the Build menu. Note that this command may take a little while to complete the first time.

- Issue: There is a known issue which causes code generation to fail every so often. If you see failures in either the code generation step or the build step, try repeating these steps again.
|