OrchardCore icon indicating copy to clipboard operation
OrchardCore copied to clipboard

FE theme dlls missing in custom bin folder in release build

Open bashuss opened this issue 8 months ago • 3 comments

Describe the bug

As I have two versions of my main project file in the same folder, I configured a custom build target folder (instead of 'bin') for one of these project files. This works fine for DEBUG builds, but in RELEASE the front end theme dlls are missing.

Orchard Core version

2.0.0-preview-18248

To Reproduce

Steps to reproduce the behavior:

  1. Create a full git checkout of OC
  2. Go to OrchardCore.Cms.Web project folder
  3. Copy the project file and rename it to OrchardCore.Cms.Web.Nuget
  4. Include the new project in the solution and open its property page
  5. Change output path from "bin" to "bin-nuget"
  6. Remove the project reference OrchardCore.Application.Cms.Targets from OrchardCore.Cms.Web.Nuget project
  7. Add nuget package OrchardCore.Application.Cms.Targets to OrchardCore.Cms.Web.Nuget project
  8. Build OrchardCore.Cms.Web.Nuget as debug and build as release
  9. Compare files in bin-nuget\Debug\net8.0\ and bin-nuget\Release\net8.0\
  10. Here the front end theme files are present in debug build, but missing in release build.

Expected behavior

theme files should be present also in the release build directory.

bashuss avatar Jun 21 '24 09:06 bashuss