How to replace PlugInArea with CommercePlugInArea?

Vote:
 

[EPiServer Commerce 8]

Hi!

When reading about breaking changes in EPiServer Commerce 8, I find this:

Namespace EPiServer.Commerce.Shell

  • PlugInArea class has been superseded by CommercePlugInArea.

How do I replace this in my component:

PlugInAreas = new[] { PlugInArea.AssetsDefaultGroup };

to using CommercePlugInArea instead?

I have a using statement for EPiServer.Commerce.Shell and I get the obsolete warning on PlugInArea. The warning tells me to use CommercePlugInArea instead. It is in the same namespace? It is not recognized when I try to use it. What am I missing here?

Regards Madelene

#120065
Apr 09, 2015 15:02
Vote:
 

Yes,

They are in same namespace - EPiServer.Commerce.Shell, but in different assemblies. PlugInArea was in EPiServer.Business.Commerce.dll and CommercePlugInArea is in EPiServer.Commerce.Shell.

The reason was PlugInArea placed in wrong assembly and we think it's better to move it to proper one without breaking changes.

Regards.

/Q

#120071
Apr 09, 2015 17:08
Vote:
 

Hi Quan!

Thank you for the fast answer. I have added the nuget package EPiServer.Commerce.UI and now it works fine.

Regards

Madelene

#120105
Apr 10, 2015 10:34
This topic was created over six months ago and has been resolved. If you have a similar question, please create a new topic and refer to this one.
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.