Closed bashuss closed 2 months ago
Well - strange enough, after several builds confirming what I wrote, I finally have a release build folder containing the files. Still they were not shown in the admin as available themes.
After stopping the website, deleting the Release folder and starting the project again, the files were created in the new Release folder and now they are available in admin/themes.
This may be trouble with the "shared" object folder between the two project files sharing the source. But this does not explain, why the admin did not show the themes, when they were there.
I am confused.
While I don't have an answer, I highly recommend you follow standard, simple setups, like having a separate solution/app in a separate folder for using OC from NuGet, and not mixing it with the full source.,
Yes, I understand. Had I seen the inconsistent behavior before, I would not have posted the bug. It was reproducible like 10 times in a row, until I obviously changed something by chance. It was just my hope to have a quick setup for directly comparing behavior between source and nuget ... and then also being able to debug a problem properly. Not a good idea obviously.
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:
OrchardCore.Cms.Web
project folderOrchardCore.Cms.Web.Nuget
OrchardCore.Application.Cms.Targets
fromOrchardCore.Cms.Web.Nuget
projectOrchardCore.Application.Cms.Targets
toOrchardCore.Cms.Web.Nuget
projectOrchardCore.Cms.Web.Nuget
as debug and build as releasebin-nuget\Debug\net8.0\
andbin-nuget\Release\net8.0\
Expected behavior
theme files should be present also in the release build directory.