File tree Expand file tree Collapse file tree
Examples/Web/Orchardcore/SharpCoreDb.Orchardcore Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ # OrchardCore Example (Currently Disabled)
2+
3+ This example project demonstrates SharpCoreDB integration with OrchardCore CMS.
4+
5+ ## Why is this disabled?
6+
7+ The project file is currently renamed to ` .csproj.disabled ` to prevent CI build failures. This is because:
8+
9+ 1 . OrchardCore 3.0 preview packages required by this .NET 10.0 project are not consistently available from public NuGet feeds
10+ 2 . OrchardCore 2.x stable versions have dependency conflicts with .NET 10.0
11+
12+ ## How to enable this project
13+
14+ To use this example locally:
15+
16+ 1 . Rename ` SharpCoreDb.Orchardcore.csproj.disabled ` to ` SharpCoreDb.Orchardcore.csproj `
17+ 2 . Ensure you have access to OrchardCore 3.0 preview packages by adding the Cloudsmith feed to your NuGet.Config:
18+ ``` xml
19+ <add key =" orchardcore-preview" value =" https://nuget.cloudsmith.io/orchardcore/preview/v3/index.json" />
20+ ```
21+ 3 . Update the OrchardCore package reference to a compatible 3.0 preview version
22+ 4 . Run ` dotnet restore ` and ` dotnet build `
23+
24+ ## Alternative
25+
26+ For a working OrchardCore integration example with stable packages, consider using OrchardCore 2.x with a .NET 8.0 target framework.
Original file line number Diff line number Diff line change 44 <TargetFramework>net10.0</TargetFramework>
55 <Nullable>enable</Nullable>
66 <ImplicitUsings>enable</ImplicitUsings>
7- <!-- Exclude from CI builds - requires OrchardCore 3.0 preview packages -->
7+ <!-- Exclude from CI builds - using stable OrchardCore packages -->
88 <IsPackable>false</IsPackable>
99 <IsPublishable>false</IsPublishable>
1010 <ExcludeFromSourceBuild>true</ExcludeFromSourceBuild>
1111 </PropertyGroup>
1212
1313 <ItemGroup>
14- <PackageReference Include =" OrchardCore.Application.Cms.Targets" Version =" 3.0.0-preview-18884 " />
14+ <PackageReference Include="OrchardCore.Application.Cms.Targets" Version="2.2.1 " />
1515 </ItemGroup>
1616
1717 <ItemGroup>
Original file line number Diff line number Diff line change 33 <packageSources >
44 <!-- Official NuGet feed -->
55 <add key =" nuget.org" value =" https://api.nuget.org/v3/index.json" protocolVersion =" 3" />
6-
7- <!-- OrchardCore Preview feed for preview packages -->
8- <add key =" orchardcore-preview" value =" https://myget.org/F/orchardcore-preview/api/v3/index.json" />
9-
10- <!-- OrchardCore nightly feed (fallback) -->
11- <add key =" orchardcore-nightly" value =" https://myget.org/F/orchardcore-nightly/api/v3/index.json" />
126 </packageSources >
137
148 <packageSourceCredentials >
1812 <config >
1913 <add key =" signatureValidationMode" value =" accept" />
2014 </config >
21-
22- <!-- Disable default sources if needed -->
23- <disabledPackageSources >
24- <add key =" orchardcore-nightly" value =" true" />
25- </disabledPackageSources >
2615</configuration >
You can’t perform that action at this time.
0 commit comments