Skip to content

Upgrading version

Simon Hughes edited this page Sep 10, 2026 · 7 revisions

Steps to Upgrade

  1. Update the Visual Studio extension (via Extensions → Manage Extensions → Updates).

  2. Update the efrpg dotnet tool, which is versioned separately from the extension:

    dotnet tool update -g Efrpg
    

    You do not have to do this on every extension update - the tool only needs replacing when a new one is released - but it is cheap and it rules the tool out as a cause if generation then misbehaves.

  3. Delete the old EF.Reverse.POCO.v4.ttinclude file from your project.

  4. Re-add the generator into the same folder:

    • Right-click project → Add New Item
    • Search for "reverse poco"
    • Use a temporary name (e.g., temp.tt)
  5. Copy your settings from your existing Database.tt into temp.tt (or compare the two files).

  6. Delete temp.tt.

  7. Save your Database.tt to trigger regeneration.

Notes

  • The EF.Reverse.POCO.v4.ttinclude file is the compiled generator. It must be replaced when upgrading — it contains the templates and generation logic.
  • Your Database.tt (settings file) is preserved across upgrades. However, new settings may be available in a new version; check Settings Reference for new options.
  • If you have customized EF.Reverse.POCO.v4.ttinclude directly, those changes will be lost. Keep your edits as a patch and reapply them after upgrading.

Clone this wiki locally