Hi,
I created a class UsrAccountAddressEventListener in my package. I want this class to inherit OOTB AccountAddressEventListener (Package CrtCustomer360App, assembly CrtCustomer360App.dll, Namespace Terrasoft.Configuration.CrtCustomer360App).
But because CrtCustomer360App is configured with Compile into a separate assembly, I cannot add a using Terrasoft.Configuration.CrtCustomer360App without a compilation error.
What can I do to fix this ?
Like
Hi Jerome,
To inherit a class from CrtCustomer360App (compiled as a separate assembly), your own package must also be compiled as a separate assembly.
Here's how to fix it:
1. Go to your package and enable "Compile into a separate assembly".
2. Add dependency on CrtCustomer360App in package properties.
3. Use the correct using directive in your class:
using Terrasoft.Configuration.CrtCustomer360App;
Once your package is compiled as an assembly, the reference to AccountAddressEventListener will resolve without errors.