Up Model code samples
DevForce Resource Center » Samples » Model code samples » Stop creating the 'ReadMe' file when (re)generating the Entity Model

Stop creating the 'ReadMe' file when (re)generating the Entity Model

Last modified on May 04, 2011 11:22

This walkthrough shows you how to stop creating the "ReadMe" file generated every time you save your EDMX.


Problem

You want to stop creating the 'ReadMe' file when (re)generating the Entity Model.

Solution

DevForce T4 Entity Model code generation creates a ReadMe file every time. You can delete it but it comes back when you regenerate the model (e.g., after making a change to the Entity Framework edmx).

The ReadMe is always the same and is annoying clutter. I don't want to see it any more!

What To Do

  • Open the DevForce edmx template file in the Visual Studio editor or in NotePad.
  • Find the line: <#@ output extension=".ReadMe" #>
  • Change it to an invalid file extension, e.g., by including a slash in the extension name: <#@ output extension="./DontReadMe" #>
  • Save

The model will regenerate ... and the ReadMe is gone.

Cost

The price you pay is a compiler warning such as:

"Warning   Unable to write the output of custom tool 'TextTemplatingFileGenerator' to file 'SimpleNorthwind.edmx./DontReadMe'.  The system cannot find the path specified."

Created by DevForce on September 15, 2010 17:04

This wiki is licensed under a Creative Commons 2.0 license. XWiki Enterprise 3.2 - Documentation. Copyright © 2020 IdeaBlade