WinApplication.GetSecurityStrategy().RegisterXPOAdapterProviders(); 我需要什么 Nuget 包?

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

我用 21.2/5 创建了一个新的 Winforms Xaf Xpo 标准安全项目 然后我把每个项目的框架都改成了4.7.2 然后我运行升级精灵。 然后我尝试将项目文件转换为使用 Nuget 和包引用。 但是我收到以下构建错误

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

我尝试深入另一个新项目,我可以看到 RegisterXPOAdapterProviders 有命名空间 DevExpress.ExpressApp.Security 我已经将其安装为 NugetPackage。 我尝试安装 DevExpress.ExpressApp.Security.Xpo 但我收到一条消息 严重性代码说明项目文件行抑制状态

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   

Feed 中没有以 DevExpress.ExpressApp.Persistent 开头的包。

文档是 here

This 问题可能相关。

我通过添加包 DevExpress.ExpressApp.Security.Xpo

设法解决了这个问题