' xrmfakedContext'不会coneinain的定义' reputepluginwith'

发布于 2025-02-10 15:52:06 字数 355 浏览 2 评论 0原文

我正在尝试将单元测试项目升级到最新版本的fackxrmeasy 2.1.2,并且我在下面收到错误:

'xrmfakedcontext'并不是“ executepluginwith''的定义,没有可访问的extension方法'expention'executepluginwith'接受一个'可以找到“ XrmfakedContext”类型的第一个论点

I'm trying to upgrade a unit test project to the latest version of FakeXrmEasy 2.1.2 and I'm getting the error below:

'XrmFakedContext' does not cointain a definition for 'ExecutePluginWith' and no accessible extension method 'ExecutePluginWith' accepting a first argument of type 'XrmFakedContext' could be found

Any ideas what I'm missing?
enter image description here

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

桃扇骨 2025-02-17 15:52:06

这可能会发生,因为某些方法已移至专用的名称空间,因此可能需要一些额外的使用语句。

请尝试添加这些用途:

using FakeXrmEasy.Abstractions.Plugins;
using FakeXrmEasy.Plugins;

另外,请使用其他可能有用的步骤检查文档网站。特别是,以6个步骤迁移的快速指南可能是一个必不可少的资源:

https://dynamicsvalue.github.io/fake-xrm-easy-docs/quickstart/migrating-from-1x/

This might happen because some methods were moved into dedicated namespaces and so some extra using statements might be necessary.

Please try adding these usings:

using FakeXrmEasy.Abstractions.Plugins;
using FakeXrmEasy.Plugins;

Also please check the documentation site with other steps that might be useful. In particular the Quick Guide to migrate in 6 steps is probably an essential resource:

https://dynamicsvalue.github.io/fake-xrm-easy-docs/quickstart/migrating-from-1x/

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文