Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 26 additions & 0 deletions Examples/Web/Orchardcore/SharpCoreDb.Orchardcore/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# OrchardCore Example (Currently Disabled)

This example project demonstrates SharpCoreDB integration with OrchardCore CMS.

## Why is this disabled?

The project file is currently renamed to `.csproj.disabled` to prevent CI build failures. This is because:

1. OrchardCore 3.0 preview packages required by this .NET 10.0 project are not consistently available from public NuGet feeds
2. OrchardCore 2.x stable versions have dependency conflicts with .NET 10.0

## How to enable this project

To use this example locally:

1. Rename `SharpCoreDb.Orchardcore.csproj.disabled` to `SharpCoreDb.Orchardcore.csproj`
2. Ensure you have access to OrchardCore 3.0 preview packages by adding the Cloudsmith feed to your NuGet.Config:
```xml
<add key="orchardcore-preview" value="https://nuget.cloudsmith.io/orchardcore/preview/v3/index.json" />
```
3. Update the OrchardCore package reference to a compatible 3.0 preview version
4. Run `dotnet restore` and `dotnet build`

## Alternative

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
Expand Up @@ -4,14 +4,14 @@
<TargetFramework>net10.0</TargetFramework>
<Nullable>enable</Nullable>
<ImplicitUsings>enable</ImplicitUsings>
<!-- Exclude from CI builds - requires OrchardCore 3.0 preview packages -->
<!-- Exclude from CI builds - using stable OrchardCore packages -->
<IsPackable>false</IsPackable>
<IsPublishable>false</IsPublishable>
<ExcludeFromSourceBuild>true</ExcludeFromSourceBuild>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="OrchardCore.Application.Cms.Targets" Version="3.0.0-preview-18884" />
<PackageReference Include="OrchardCore.Application.Cms.Targets" Version="2.2.1" />
</ItemGroup>

<ItemGroup>
Expand Down
11 changes: 0 additions & 11 deletions NuGet.Config
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,6 @@
<packageSources>
<!-- Official NuGet feed -->
<add key="nuget.org" value="https://api.nuget.org/v3/index.json" protocolVersion="3" />

<!-- OrchardCore Preview feed for preview packages -->
<add key="orchardcore-preview" value="https://myget.org/F/orchardcore-preview/api/v3/index.json" />

<!-- OrchardCore nightly feed (fallback) -->
<add key="orchardcore-nightly" value="https://myget.org/F/orchardcore-nightly/api/v3/index.json" />
</packageSources>

<packageSourceCredentials>
Expand All @@ -18,9 +12,4 @@
<config>
<add key="signatureValidationMode" value="accept" />
</config>

<!-- Disable default sources if needed -->
<disabledPackageSources>
<add key="orchardcore-nightly" value="true" />
</disabledPackageSources>
</configuration>
Loading