Skip to content

Custom theme recipe.json not detected #18551

@GadgetGeekUK

Description

@GadgetGeekUK

Describe the bug

When following the readme to create a custom theme, and including a .recipe.json file, with 'issetuprecipe': true, the theme is not in the startup collection.

Orchard Core version

2.2.1 / Visual Studio 2022 /Visual Studio 2026

To Reproduce

  1. Follow the readme steps to create a new theme
  2. Add/Edit the recipe.json file
  3. Include the project in the Cms.Web project dependencies
  4. Start the Cms.Web project, debug the recipe harvester, check found recipes when the 'path' matches the project - no recipes are found.

If you then:

  1. Copy the recipe file to one of the other themes and start: The new recipe IS visible (twice) in the drop down.
  2. Delete the copied recipe file from the Orchard theme and start. The new recipe is still visible twice.
  3. Rebuild the solution and restart: The new recipe is visible ONCE in the drop down, debugging The Recipe harvester shows it being found within the correct project path.

Expected behavior

Recipe is detected by the Recipe Harvester class and displayed in the setup dropdown list of available recipes.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions