How to setup a minimal Orchard Core #10056
RockNHawk
started this conversation in
Show and tell
Replies: 1 comment 7 replies
-
The easiest option is to start with SaaS recipe. |
Beta Was this translation helpful? Give feedback.
7 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
if you want to setup a minimal Orchard Core,

These is main project's dependies. Module project only depends on
OrchardCore.Module.Targets.csproj
.Use it with a .recipe.json configuration for the initial Setup.
#7287
If you ConfigureServices Orchard Core with your custom config in main Application's Startup.cs , may show Unable to resolve service for type 'YesSql.ISession' while attempting to activate 'OrchardCore.Workflows.Http.Services.HttpRequestRouteActivator' error in setup
add an AddDataAccess() call in ConfigureServices will resolve this issue.
// copy & modified from AddOrchardCms
var builder = services.AddOrchardCore()
.AddCommands()
.AddMvc()
.AddEmailAddressValidator()
.AddHtmlSanitizer()
.AddSetupFeatures("OrchardCore.Setup")
.AddDataAccess()
.AddDataStorage()
.AddBackgroundService()
//.AddTheming()
//.AddLiquidViews()
.AddCaching()
;
#7288
recipe.json config:
#7287
Startup.cs config:
#7288
Beta Was this translation helpful? Give feedback.
All reactions