Search code examples
c#nugetxafxpo

What Nuget Package do I need for WinApplication.GetSecurityStrategy().RegisterXPOAdapterProviders();?


I created a new Winforms Xaf Xpo standard security project with 21.2/5 Then I changed the framework of each project to be 4.7.2 Then I ran the upgrade wizard. Then I tried to convert the project files to use Nuget with Package References. However I get the following build errors

Severity    Code    Description Project File    Line    Suppression State
Error   CS1061  'SecurityStrategy' does not contain a definition for 'RegisterXPOAdapterProviders' and no accessible extension method 'RegisterXPOAdapterProviders' accepting a first argument of type 'SecurityStrategy' could be found (are you missing a using directive or an assembly reference?)  DXXpo.Win   C:\Users\kirst\source\repos\DXXpo\DXXpo.Win\Program.cs  33  Active
Error   CS0246  The type or namespace name 'SecuredObjectSpaceProvider' could not be found (are you missing a using directive or an assembly reference?)    DXXpo.Win   C:\Users\kirst\source\repos\DXXpo\DXXpo.Win\WinApplication.cs   20  Active

I tried drilling into another new project and I can see that RegisterXPOAdapterProviders has namespace DevExpress.ExpressApp.Security I already have that installed as a NugetPackage. I tried installing DevExpress.ExpressApp.Security.Xpo but I get a message Severity Code Description Project File Line Suppression State

Error   NU1101  Unable to find package DevExpress.ExpressApp.Persistent.Base. No packages exist with this id in source(s): DevExpressMy, nuget.org, SBDCommonFeed@Local DXXpo.Win   C:\Users\kirst\source\repos\DXXpo\DXXpo.Win\DXXpo.Win.csproj    1   

There are no packages starting with DevExpress.ExpressApp.Persistent in the feed.

Error message

The docs are here

This question is possibly related.


Solution

  • I managed to resolve this issue by including the package DevExpress.ExpressApp.Security.Xpo