Partager via


How to Automate Transform All Templates

You can avoid having to click Transform All Templates when you have updated your DSL Definition file. You have to update each of your project files to do this.

To automate Transform All Templates

  1. In Solution Explorer, right-click a project, and then click Unload Project.

  2. Right-click the project and click Edit project.

    The .csproj file opens in the XML editor.

  3. Search for this line:

    <TransformOnBuild>false</TransformOnBuild>

  4. Change false to true.

  5. Save and close the file.

  6. In Solution Explorer, right-click the project and then click Reload Project.

    In your DSL solution, you must do this for the Dsl and DslPackage projects, as well as for any other project that contains text transform files, such as a Model Bus Adapter project.

Whenever you update your DSL Definition file in future, text transformation will happen automatically when you build the solution. It will not occur if the DSL Definition file has not changed. It is no longer necessary to click Transform All Templates.

If your code is under source control, you should be aware that building the solution might result in your code files being checked out.