When running the command abp add-module Volo.Payment to install the Payment module, the installation encounters the following errors:
\Project\src\Project.Domain.Shared\ProjectDomainSharedModule.cs(24,20): error CS0234: Der Typ- oder Namespacename "Paypal" ist im Namespace "Volo.Payment" nicht vorhanden. (Möglicherweise fehlt ein Assemblyverweis.)
\Project\src\Project.Domain.Shared\ProjectDomainSharedModule.cs(50,23): error CS0246: Der Typ- oder Namespacename "AbpPaymentPayPalDomainSharedModule" wurde nicht gefunden (möglicherweise fehlt eine using-Direktive oder ein Assemblyverweis).
The cause of this is a type in the ProjectDomainSharedModule. It includes it with "using Volo.Payment.Paypal;" instead of "using Volo.Payment.PayPal;"
Resolving the typo fixed the issue
- Steps to reproduce the issue:
-
- Create a new project
-
- Install Payment with the above command
3 Answer(s)
-
0
- This is a case-sensitive namespace/type reference issue introduced by the
abp add-module Volo.Paymentintegration into your solution: the generated/addedProjectDomainSharedModule.csends up withusing Volo.Payment.Paypal;(lowercasep) while the actual namespace/module isVolo.Payment.PayPal(uppercaseP). - On environments/filesystems where casing matters (and in C# type resolution in general), that results in:
Volo.Payment.Paypalnamespace not foundAbpPaymentPayPalDomainSharedModulenot found (because theusingfails)
Fix
- Open
src/Project.Domain.Shared/ProjectDomainSharedModule.cs - Replace:
using Volo.Payment.Paypal;with:
using Volo.Payment.PayPal;- Rebuild the solution.
That should unblock compilation immediately (as you observed).
If you want to avoid editing by hand after re-running module add, check the file right after
abp add-module Volo.Paymentand correct the casing before building.(Verified doc page for the module install command is below.)
- https://abp.io/docs/latest/modules/payment
This response was generated by AI. If it didn’t solve your problem, feel free to post a new answer — our support team will jump in to help you soon.
Markdown supported.Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post) - This is a case-sensitive namespace/type reference issue introduced by the
-
0
Hi,
You're right, this is a casing bug on our side. The module registry that
abp add-modulereads reports the PayPal Domain.Shared module with the wrong namespace casing —Volo.Payment.Paypalinstead ofVolo.Payment.PayPal. The CLI writes that value as-is, so it addsusing Volo.Payment.Paypal;to your*.Domain.Sharedproject, which doesn't match the real namespace and the build fails with CS0234/CS0246. That same casing inconsistency is what you're seeing as the two namespace groups in the API reference.Your manual fix is exactly the right one — keep using:
using Volo.Payment.PayPal;We'll correct the casing in the module's package metadata so it's consistent and
add-moduleno longer needs the manual edit. Thanks for digging into it and sharing the screenshot.Thanks
Markdown supported.Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
