Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Features from the dependency packages don't show up when only the OrchardCore.Commerce NuGet package is referenced (OCC-257) #456

Open
sarahelsaig opened this issue Jun 11, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@sarahelsaig
Copy link
Contributor

sarahelsaig commented Jun 11, 2024

/cc: @DrewBrasher

Describe the bug

Only the features defined in the OrchardCore.Commerce package show up:

image

Features from all of its OC module dependencies are missing. This may be some kind of package export problem.

To Reproduce

Steps to reproduce the behavior:

  1. Create a new solution with the Orchard Core Cms Web App template.
  2. Type dotnet add package OrchardCore.Commerce --version 2.1.0 into the command line in the web project's directory.
  3. Launch and set up the web app.
  4. Go to Admin > Configuration > Features
  5. Type commerce into the search bar.
  6. Observe that only 3 features are listed.

Expected behavior

All the features should be included.

Workaround

Until this is fixed, explicitly adding each project reference to the web csproj is a viable workaround:

  <ItemGroup>
    <PackageReference Include="OrchardCore.Commerce" Version="2.1.0" />
    <PackageReference Include="OrchardCore.Commerce.Abstractions" Version="2.1.0" />
    <PackageReference Include="OrchardCore.Commerce.AddressDataType" Version="2.1.0" />
    <PackageReference Include="OrchardCore.Commerce.ContentFields" Version="2.1.0" />
    <PackageReference Include="OrchardCore.Commerce.Inventory" Version="2.1.0" />
    <PackageReference Include="OrchardCore.Commerce.MoneyDataType" Version="2.1.0" />
    <PackageReference Include="OrchardCore.Commerce.Payment" Version="2.1.0" />
    <PackageReference Include="OrchardCore.Commerce.Payment.Exactly" Version="2.1.0" />
    <PackageReference Include="OrchardCore.Commerce.Promotion" Version="2.1.0" />
    <PackageReference Include="OrchardCore.Commerce.Tax" Version="2.1.0" />
  </ItemGroup>

Jira issue

@sarahelsaig sarahelsaig added the bug Something isn't working label Jun 11, 2024
@github-actions github-actions bot changed the title Features from the dependency packages don't show up when only the OrchardCore.Commerce NuGet package is referenced Features from the dependency packages don't show up when only the OrchardCore.Commerce NuGet package is referenced (OCC-257) Jun 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant